summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/hash.c b/src/hash.c
index 4dad3c7..206d593 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -69,12 +69,8 @@ static struct UserHost *userhostTable[HASHSIZE];
void
hash_init(void)
{
- /* Default the userhost/namehost sizes to CLIENT_HEAP_SIZE for now,
- * should be a good close approximation anyway
- * - Dianora
- */
- userhost_pool = mp_pool_new(sizeof(struct UserHost), MP_CHUNK_SIZE_CLIENT);
- namehost_pool = mp_pool_new(sizeof(struct NameHost), MP_CHUNK_SIZE_CLIENT);
+ userhost_pool = mp_pool_new(sizeof(struct UserHost), MP_CHUNK_SIZE_USERHOST);
+ namehost_pool = mp_pool_new(sizeof(struct NameHost), MP_CHUNK_SIZE_NAMEHOST);
hashf_xor_key = genrand_int32() % 256; /* better than nothing --adx */
}