aboutsummaryrefslogtreecommitdiff
path: root/src/common/container.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/common/container.c
parent2d7cf75e427be142ec3a122e1eb159e3ddb13507 (diff)
downloadtor-c8c36dd227eec2454cfe3aaa74720cc5897864ac.tar.gz
tor-c8c36dd227eec2454cfe3aaa74720cc5897864ac.zip
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/common/container.c')
-rw-r--r--src/common/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/container.c b/src/common/container.c
index 5facd72d65..6dae0bb932 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -675,7 +675,7 @@ strmap_new(void)
{
strmap_t *result;
result = tor_malloc(sizeof(strmap_t));
- HT_INIT(&result->head);
+ HT_INIT(strmap_impl, &result->head);
return result;
}
@@ -686,7 +686,7 @@ digestmap_new(void)
{
digestmap_t *result;
result = tor_malloc(sizeof(digestmap_t));
- HT_INIT(&result->head);
+ HT_INIT(digestmap_impl, &result->head);
return result;
}