Sfoglia il codice sorgente

r15861@catbus: nickm | 2007-10-16 13:10:22 -0400
Fix example use of hash table iterators


svn:r11991

Nick Mathewson 16 anni fa
parent
commit
2e131e31b5
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/common/container.c

+ 2 - 2
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