aboutsummaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-10-20 16:22:53 +0000
committerNick Mathewson <nickm@torproject.org>2006-10-20 16:22:53 +0000
commitc8c36dd227eec2454cfe3aaa74720cc5897864ac (patch)
tree286d05b28c860e2c5751ab88150bb857a9f3dffc /src/or/dns.c
parent2d7cf75e427be142ec3a122e1eb159e3ddb13507 (diff)
downloadtor-c8c36dd227eec2454cfe3aaa74720cc5897864ac.tar
tor-c8c36dd227eec2454cfe3aaa74720cc5897864ac.tar.gz
r9304@dhcp-18-188-67-85: nickm | 2006-10-20 12:22:46 -0400
Change HT_INIT from a special-case to a macro-calling-a-function like the rest of ht.h. This might prevent errors if somebody did, I dunno, "HT_INIT(tp, hashtable++)". Based on a patch from Watson Ladd. svn:r8776
Diffstat (limited to 'src/or/dns.c')
-rw-r--r--src/or/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 60dca8b69..4a9853959 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -162,7 +162,7 @@ HT_GENERATE(cache_map, cached_resolve_t, node, cached_resolve_hash,
static void
init_cache_map(void)
{
- HT_INIT(&cache_root);
+ HT_INIT(cache_map, &cache_root);
}
#ifdef USE_EVENTDNS