[or-cvs] r11991: Fix example use of hash table iterators (in tor/trunk: . src/common)
nickm at seul.org
nickm at seul.org
Tue Oct 16 17:21:05 UTC 2007
Author: nickm
Date: 2007-10-16 13:21:05 -0400 (Tue, 16 Oct 2007)
New Revision: 11991
Modified:
tor/trunk/
tor/trunk/src/common/container.c
Log:
r15861 at catbus: nickm | 2007-10-16 13:10:22 -0400
Fix example use of hash table iterators
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r15861] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/common/container.c
===================================================================
--- tor/trunk/src/common/container.c 2007-10-16 17:21:03 UTC (rev 11990)
+++ tor/trunk/src/common/container.c 2007-10-16 17:21:05 UTC (rev 11991)
@@ -956,11 +956,11 @@
* strmap_iter_get(iter, &key, &val);
* cp = (char*)val;
* if (!*cp) {
- * iter = strmap_iter_next_rmv(iter);
+ * iter = strmap_iter_next_rmv(map,iter);
* free(val);
* } else {
* for (;*cp;cp++) *cp = TOR_TOUPPER(*cp);
- * iter = strmap_iter_next(iter);
+ * iter = strmap_iter_next(map,iter);
* }
* }
* \endcode
More information about the tor-commits
mailing list