From 966dd4f6e70ff39a646ad2b22c38be84260184bb Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Fri, 6 Feb 2009 20:13:42 +0100 Subject: [PATCH] We must now set the ratio when creating hash tables. --- btpd/tlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btpd/tlib.c b/btpd/tlib.c index bd4fbc6..963931b 100644 --- a/btpd/tlib.c +++ b/btpd/tlib.c @@ -309,8 +309,8 @@ tlib_init(void) uint8_t hash[20]; char file[PATH_MAX]; - m_numtbl = numtbl_create(num_test, num_hash); - m_hashtbl = hashtbl_create(id_test, id_hash); + m_numtbl = numtbl_create(1, num_test, num_hash); + m_hashtbl = hashtbl_create(1, id_test, id_hash); if (m_numtbl == NULL || m_hashtbl == NULL) btpd_err("Out of memory.\n");