aboutsummaryrefslogtreecommitdiff
path: root/src/common/ht.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-05-24 18:12:38 +0000
committerNick Mathewson <nickm@torproject.org>2007-05-24 18:12:38 +0000
commit79707437d993f9c382602502d168dae259b02c55 (patch)
treee5a213f1762c0ddccae145e3469c98f671cebfff /src/common/ht.h
parent687461d36c35e49ca2476dfc6abf9707c0b3267c (diff)
downloadtor-79707437d993f9c382602502d168dae259b02c55.tar
tor-79707437d993f9c382602502d168dae259b02c55.tar.gz
r12933@catbus: nickm | 2007-05-24 14:10:28 -0400
Optimize digestmap_set, since it sometimes shows up in profiles. Seems to work so far, but it isnt the prettiest thing ever. svn:r10312
Diffstat (limited to 'src/common/ht.h')
-rw-r--r--src/common/ht.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ht.h b/src/common/ht.h
index 2ad46a387..63629c3ac 100644
--- a/src/common/ht.h
+++ b/src/common/ht.h
@@ -80,7 +80,7 @@ ht_string_hash(const char *s)
#define _HT_SET_HASH(elm, field, hashfn) \
do { \
- elm->field.hte_hash = hashfn(elm); \
+ (elm)->field.hte_hash = hashfn(elm); \
} while (0)
#define HT_FOREACH(x, name, head) \