aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-15 15:45:38 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-15 15:45:38 -0500
commit1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2 (patch)
tree7e9fa1b2b5afa1842e7f6fafaa2600bc27e9d507
parent10d1b0b33ed73d9696d1695196bf397ccaab31d9 (diff)
downloadtor-1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2.tar
tor-1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2.tar.gz
Remove string hash in ht.h so we can't accidentally use it
-rw-r--r--src/ext/ht.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext/ht.h b/src/ext/ht.h
index 669a2ed92..8bf9b8054 100644
--- a/src/ext/ht.h
+++ b/src/ext/ht.h
@@ -86,6 +86,7 @@ ht_string_hash(const char *s)
}
#endif
+#if 0
/** Basic string hash function, from Python's str.__hash__() */
static INLINE unsigned
ht_string_hash(const char *s)
@@ -100,6 +101,7 @@ ht_string_hash(const char *s)
h ^= (unsigned)(cp-(const unsigned char*)s);
return h;
}
+#endif
#ifndef HT_NO_CACHE_HASH_VALUES
#define HT_SET_HASH_(elm, field, hashfn) \