diff options
author | Uros Majstorovic <majstor@majstor.org> | 2022-01-30 02:01:37 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2022-01-30 02:01:37 +0100 |
commit | ceb32f60ef7d6210883acf1f17500f87cac8888c (patch) | |
tree | f7da899c7ddc3ffa13a43e4f37e38a2d4a184671 /ecp/src/htable/htable.c | |
parent | a4f22127be441c4c158c10fe65916872d99253d2 (diff) |
hashtable fix
Diffstat (limited to 'ecp/src/htable/htable.c')
-rw-r--r-- | ecp/src/htable/htable.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ecp/src/htable/htable.c b/ecp/src/htable/htable.c index a46291b..1fa79a3 100644 --- a/ecp/src/htable/htable.c +++ b/ecp/src/htable/htable.c @@ -5,11 +5,14 @@ #include "hashtable.h" void *ecp_ht_create(ECPContext *ctx) { - return create_hashtable(1000, (unsigned int (*)(void *))ecp_cr_dh_pub_hash_fn, (int (*)(void *, void *))ecp_cr_dh_pub_hash_eq, NULL, NULL, NULL); + printf("NEFORE CREATE\n"); + void *r = hashtable_create(1000, (unsigned int (*)(void *))ecp_cr_dh_pub_hash_fn, (int (*)(void *, void *))ecp_cr_dh_pub_hash_eq); + printf("AFTER CREATE\n"); + return r; } void ecp_ht_destroy(void *h) { - hashtable_destroy(h); + hashtable_destroy(h, 0); } int ecp_ht_insert(void *h, unsigned char *k, ECPConnection *v) { |