]> the.earth.li Git - onak.git/blobdiff - hash.c
Update DB3 backend to use 64bit key ids.
[onak.git] / hash.c
diff --git a/hash.c b/hash.c
index 4caa70909ba76a1db9e0dc46a0a00646b49a97d5..3aa5d749b3bca9691370ecb8d16a3a8ab0afcdfc 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -4,6 +4,8 @@
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2000-2002 Project Purple
+ *
+ * $Id: hash.c,v 1.10 2003/10/11 21:52:18 noodles Exp $
  */
 
 #include <stdio.h>
@@ -55,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;
@@ -121,7 +123,7 @@ unsigned long hashelements(void)
        return elements;
 }
 
-struct ll *gethashtableentry(int entry)
+struct ll *gethashtableentry(unsigned int entry)
 {
        return hashtable[entry];
 }