X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=hash.c;h=3aa5d749b3bca9691370ecb8d16a3a8ab0afcdfc;hb=d76720d2254815018d4881babd73d4723d22033c;hp=9ee8b9bd62e9d4203743d3fd16f635b268340845;hpb=0f4971d043c38bae1bfb95201622a1405110f899;p=onak.git diff --git a/hash.c b/hash.c index 9ee8b9b..3aa5d74 100644 --- a/hash.c +++ b/hash.c @@ -5,7 +5,7 @@ * * Copyright 2000-2002 Project Purple * - * $Id: hash.c,v 1.8 2003/06/04 20:57:08 noodles Exp $ + * $Id: hash.c,v 1.10 2003/10/11 21:52:18 noodles Exp $ */ #include @@ -57,7 +57,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 +123,7 @@ unsigned long hashelements(void) return elements; } -struct ll *gethashtableentry(int entry) +struct ll *gethashtableentry(unsigned int entry) { return hashtable[entry]; }