summaryrefslogtreecommitdiff
path: root/ecp/src/htable/htable.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-01-30 02:01:37 +0100
committerUros Majstorovic <majstor@majstor.org>2022-01-30 02:01:37 +0100
commitceb32f60ef7d6210883acf1f17500f87cac8888c (patch)
treef7da899c7ddc3ffa13a43e4f37e38a2d4a184671 /ecp/src/htable/htable.c
parenta4f22127be441c4c158c10fe65916872d99253d2 (diff)
hashtable fix
Diffstat (limited to 'ecp/src/htable/htable.c')
-rw-r--r--ecp/src/htable/htable.c7
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) {