diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-16 17:21:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-16 17:21:05 +0000 |
commit | 2e131e31b5815fdb166927f41847eadf348bc537 (patch) | |
tree | 42a0b4c708b8a74a7dab27b5dea5a51f1909c26c /src/common/container.c | |
parent | 0dab1a14a5731dd823a4c5e3109ffb142f440356 (diff) | |
download | tor-2e131e31b5815fdb166927f41847eadf348bc537.tar.gz tor-2e131e31b5815fdb166927f41847eadf348bc537.zip |
r15861@catbus: nickm | 2007-10-16 13:10:22 -0400
Fix example use of hash table iterators
svn:r11991
Diffstat (limited to 'src/common/container.c')
-rw-r--r-- | src/common/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |