From: Nick Mathewson Date: Tue, 16 Oct 2007 17:21:05 +0000 (+0000) Subject: r15861@catbus: nickm | 2007-10-16 13:10:22 -0400 X-Git-Tag: tor-0.2.0.9-alpha~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e131e31b5815fdb166927f41847eadf348bc537;p=thirdparty%2Ftor.git r15861@catbus: nickm | 2007-10-16 13:10:22 -0400 Fix example use of hash table iterators svn:r11991 --- diff --git a/src/common/container.c b/src/common/container.c index b0c201ccf9..f2a80208b3 100644 --- a/src/common/container.c +++ b/src/common/container.c @@ -956,11 +956,11 @@ strmap_remove_lc(strmap_t *map, const char *key) * 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