summaryrefslogtreecommitdiff
path: root/lib/qobj.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2017-09-07 11:35:08 +0200
committerGitHub <noreply@github.com>2017-09-07 11:35:07 +0200
commita7e5e20a22cf875a077f4800dbbec23b6c836b03 (patch)
tree44ceeb06c1f3d48f17fa87e4c4f60eb1ab27780e /lib/qobj.c
parentcbd1fec33150b71eef438b2cb9dd08b28d7e2ac7 (diff)
parent8462c0ff42a966c4659a3ae020042c5ee9f8d619 (diff)
Merge pull request #1099 from donaldsharp/hashing
Hashing
Diffstat (limited to 'lib/qobj.c')
-rw-r--r--lib/qobj.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/qobj.c b/lib/qobj.c
index 5f450ca0d3..c75002052e 100644
--- a/lib/qobj.c
+++ b/lib/qobj.c
@@ -25,6 +25,7 @@
#include "hash.h"
#include "log.h"
#include "qobj.h"
+#include "jhash.h"
static pthread_rwlock_t nodes_lock;
static struct hash *nodes = NULL;
@@ -97,7 +98,9 @@ void qobj_init(void)
{
if (!nodes) {
pthread_rwlock_init(&nodes_lock, NULL);
- nodes = hash_create(qobj_key, qobj_cmp, NULL);
+ nodes = hash_create_size(16, qobj_key,
+ qobj_cmp,
+ "QOBJ Hash");
}
}