X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/2f1b865faa5a6fbd809caa7c70f9b4dddfa35947..bf52d4344cd29ab86c1d5981d2ea4d1717eb2f84:/hash.c?ds=sidebyside diff --git a/hash.c b/hash.c index 4caa709..66ae5e5 100644 --- a/hash.c +++ b/hash.c @@ -55,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; @@ -121,7 +121,7 @@ unsigned long hashelements(void) return elements; } -struct ll *gethashtableentry(int entry) +struct ll *gethashtableentry(unsigned int entry) { return hashtable[entry]; }