X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=hash.c;h=3aa5d749b3bca9691370ecb8d16a3a8ab0afcdfc;hb=3cda9c7bba49d5f9b8321bb66b14db9b9bc2f528;hp=91f3b9e2be24fafaeb79170438cf5351508c4086;hpb=5913c95f2c7abf4c3cb06e27d384d80fb4c83547;p=onak.git diff --git a/hash.c b/hash.c index 91f3b9e..3aa5d74 100644 --- a/hash.c +++ b/hash.c @@ -4,10 +4,13 @@ * Jonathan McDowell * * Copyright 2000-2002 Project Purple + * + * $Id: hash.c,v 1.10 2003/10/11 21:52:18 noodles Exp $ */ #include #include +#include #include "hash.h" #include "keystructs.h" @@ -54,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; @@ -120,7 +123,7 @@ unsigned long hashelements(void) return elements; } -struct ll *gethashtableentry(int entry) +struct ll *gethashtableentry(unsigned int entry) { return hashtable[entry]; }