On Fri, 20 Oct 2006 13:31:39 +0100 Dave wrote:
DS> On 20/10/06, Robert Story <[EMAIL PROTECTED]> wrote:
DS> > DS> + /*
DS> > DS> + * Skip to the indicated varbind
DS> > DS> + */
DS> > DS> + for ( i=2; i<idx; i++) {
DS> > DS> + req = req->next;
DS>
DS> > Why is i initialized to 2?
DS>
DS> Because 'req' starts by pointing to the first varbind (index 1).
DS> So if 'idx' is 1, then we're already at the right place.
Ok, then shouldn't it be 'i<=idx'? Otherwise if index = 1, it will still use
the first varbind?
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders