about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2009-02-06 20:13:42 +0100
committerRichard Nyberg <rnyberg@murmeldjur.se>2009-02-06 20:16:56 +0100
commit966dd4f6e70ff39a646ad2b22c38be84260184bb (patch)
treeb497ed5897b5e8ad724fbcbd7420c9c0d2a0a474
parente5332f1aa9226a0934ae616828e1dbf603d50d91 (diff)
downloadbtpd-966dd4f6e70ff39a646ad2b22c38be84260184bb.tar.gz
btpd-966dd4f6e70ff39a646ad2b22c38be84260184bb.zip
We must now set the ratio when creating hash tables.
-rw-r--r--btpd/tlib.c4
1 files 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");