diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-02-15 15:45:38 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-02-15 15:45:38 -0500 |
commit | 1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2 (patch) | |
tree | 7e9fa1b2b5afa1842e7f6fafaa2600bc27e9d507 /src/ext | |
parent | 10d1b0b33ed73d9696d1695196bf397ccaab31d9 (diff) | |
download | tor-1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2.tar.gz tor-1ad6dd0dbee7c757ef5f2f2d38b846ab7d991fb2.zip |
Remove string hash in ht.h so we can't accidentally use it
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/ht.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext/ht.h b/src/ext/ht.h index 669a2ed929..8bf9b8054b 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) \ |