aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-12-03 02:00:51 +0000
committerNick Mathewson <nickm@torproject.org>2005-12-03 02:00:51 +0000
commitce3cdecb9defb5dabe086593d881739e483e8f49 (patch)
tree3d95015237d5092133585416ecf9d73cdceaad5b /src/common/container.h
parent4a0b6af935ff939251b7d5eb4f6dfe88c665e4cf (diff)
downloadtor-ce3cdecb9defb5dabe086593d881739e483e8f49.tar.gz
tor-ce3cdecb9defb5dabe086593d881739e483e8f49.zip
Make more arguments const; do not call hash tables trees.
svn:r5487
Diffstat (limited to 'src/common/container.h')
-rw-r--r--src/common/container.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/container.h b/src/common/container.h
index 93942ed972..752ca9eb9e 100644
--- a/src/common/container.h
+++ b/src/common/container.h
@@ -27,9 +27,9 @@ void smartlist_set_capacity(smartlist_t *sl, int n);
void smartlist_clear(smartlist_t *sl);
void smartlist_add(smartlist_t *sl, void *element);
void smartlist_add_all(smartlist_t *sl, const smartlist_t *s2);
-void smartlist_remove(smartlist_t *sl, void *element);
+void smartlist_remove(smartlist_t *sl, const void *element);
void smartlist_string_remove(smartlist_t *sl, const char *element);
-int smartlist_isin(const smartlist_t *sl, void *element);
+int smartlist_isin(const smartlist_t *sl, const void *element);
int smartlist_string_isin(const smartlist_t *sl, const char *element);
int smartlist_string_num_isin(const smartlist_t *sl, int num);
int smartlist_overlap(const smartlist_t *sl1, const smartlist_t *sl2);
@@ -123,7 +123,7 @@ char *smartlist_join_strings2(smartlist_t *sl, const char *join,
void prefix##iter_get(prefix##iter_t *iter, keytype *keyp, void **valp); \
int prefix##iter_done(prefix##iter_t *iter);
-/* Map from const char * to void *. Implemented with a splay tree. */
+/* Map from const char * to void *. Implemented with a hash table. */
DECLARE_MAP_FNS(strmap_t, const char *, strmap_);
DECLARE_MAP_FNS(digestmap_t, const char *, digestmap_);