X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0f4971d043c38bae1bfb95201622a1405110f899..e1385087ec060568a966a5305a9d88c24a2a0a55:/hash.c 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]; }