X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0f4971d043c38bae1bfb95201622a1405110f899..567528bebc2dd1a8ccb672d11b22cbe71b292deb:/hash.c?ds=sidebyside diff --git a/hash.c b/hash.c index 9ee8b9b..66ae5e5 100644 --- a/hash.c +++ b/hash.c @@ -4,8 +4,6 @@ * Jonathan McDowell * * Copyright 2000-2002 Project Purple - * - * $Id: hash.c,v 1.8 2003/06/04 20:57:08 noodles Exp $ */ #include @@ -57,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; @@ -123,7 +121,7 @@ unsigned long hashelements(void) return elements; } -struct ll *gethashtableentry(int entry) +struct ll *gethashtableentry(unsigned int entry) { return hashtable[entry]; }