[or-cvs] r12992: Apparently loops work better when you actually increment/dec (in tor/trunk: . src/or)
nickm at seul.org
nickm at seul.org
Thu Dec 27 03:23:57 UTC 2007
Author: nickm
Date: 2007-12-26 22:23:57 -0500 (Wed, 26 Dec 2007)
New Revision: 12992
Modified:
tor/trunk/
tor/trunk/src/or/buffers.c
Log:
r17403 at catbus: nickm | 2007-12-26 22:23:50 -0500
Apparently loops work better when you actually increment/decrement the loop variable. Who knew?
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r17403] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/or/buffers.c
===================================================================
--- tor/trunk/src/or/buffers.c 2007-12-27 00:25:54 UTC (rev 12991)
+++ tor/trunk/src/or/buffers.c 2007-12-27 03:23:57 UTC (rev 12992)
@@ -237,6 +237,7 @@
while (n_to_skip) {
tor_assert((*chp)->next);
chp = &(*chp)->next;
+ --n_to_skip;
}
chunk = *chp;
*chp = NULL;
More information about the tor-commits
mailing list