aboutsummaryrefslogtreecommitdiff
path: root/hashtable.h
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-08-08 12:06:59 +0200
committerTom Smeding <tom.smeding@gmail.com>2020-08-08 12:06:59 +0200
commitfc18e73c7e66c7a03381312937434aac7210ca6b (patch)
treeb64b9fa1f246efbdbac1356114afb1811a6400c9 /hashtable.h
parent8f17684810718973c8ea0f1150e46d6c1b8c0ef1 (diff)
server: Fix bug in hashtable
Diffstat (limited to 'hashtable.h')
-rw-r--r--hashtable.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hashtable.h b/hashtable.h
index 21467a8..5147fa5 100644
--- a/hashtable.h
+++ b/hashtable.h
@@ -5,9 +5,10 @@
struct hashtable;
-struct hashtable* ht_alloc();
+struct hashtable* ht_alloc(void);
void ht_free(struct hashtable *ht);
+// Overwrites if the key already exists in the table.
void ht_insert(struct hashtable *ht, u64 key, void *value);
// Returns NULL if key is not present in the table.