X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/5913c95f2c7abf4c3cb06e27d384d80fb4c83547..393d83b8760584006eaefd6fc370abead228e02a:/hash.c diff --git a/hash.c b/hash.c index 91f3b9e..66ae5e5 100644 --- a/hash.c +++ b/hash.c @@ -8,6 +8,7 @@ #include #include +#include #include "hash.h" #include "keystructs.h" @@ -54,7 +55,7 @@ void destroyhash(void) * TODO: The problem is the object has pointers that * need freed too. */ - llfree(curll, free_statskey); + llfree(curll, (void (*)(void *)) free_statskey); hashtable[i] = NULL; } elements = 0; @@ -120,7 +121,7 @@ unsigned long hashelements(void) return elements; } -struct ll *gethashtableentry(int entry) +struct ll *gethashtableentry(unsigned int entry) { return hashtable[entry]; }