diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-18 21:24:37 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-18 21:24:37 +0000 |
commit | 7a61357250fa706e06d9e19c47546fa884ccbefd (patch) | |
tree | f4d6dbf5ee5ba531eb52e53efe9ab5376dca3316 /src/common/ht.h | |
parent | 4b18c3ea76b39fd6bf4a5aa4c7d203ae8acc8e15 (diff) | |
download | tor-7a61357250fa706e06d9e19c47546fa884ccbefd.tar.gz tor-7a61357250fa706e06d9e19c47546fa884ccbefd.zip |
r12790@catbus: nickm | 2007-05-18 17:24:26 -0400
Fix build on gcc 4.2
svn:r10212
Diffstat (limited to 'src/common/ht.h')
-rw-r--r-- | src/common/ht.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/ht.h b/src/common/ht.h index e6afdd88ff..2ad46a3877 100644 --- a/src/common/ht.h +++ b/src/common/ht.h @@ -122,8 +122,9 @@ ht_string_hash(const char *s) name##_HT_FIND(const struct name *head, struct type *elm) \ { \ struct type **p; \ + struct name *h = (struct name *) head; \ _HT_SET_HASH(elm, field, hashfn); \ - p = _##name##_HT_FIND_P((struct name *)head, elm); \ + p = _##name##_HT_FIND_P(h, elm); \ return p ? *p : NULL; \ } \ /* Insert the element 'elm' into the table 'head'. Do not call this \ |