diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-24 18:12:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-24 18:12:38 +0000 |
commit | 79707437d993f9c382602502d168dae259b02c55 (patch) | |
tree | e5a213f1762c0ddccae145e3469c98f671cebfff /src/common/ht.h | |
parent | 687461d36c35e49ca2476dfc6abf9707c0b3267c (diff) | |
download | tor-79707437d993f9c382602502d168dae259b02c55.tar.gz tor-79707437d993f9c382602502d168dae259b02c55.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ht.h b/src/common/ht.h index 2ad46a3877..63629c3ac6 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) \ |