]> git.sommitrealweird.co.uk Git - onak.git/blobdiff - hash.c
Update version to mark arch build.
[onak.git] / hash.c
diff --git a/hash.c b/hash.c
index 91f3b9e2be24fafaeb79170438cf5351508c4086..66ae5e54dccfbf3984b54c6807946c8024c8845b 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -8,6 +8,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "hash.h"
 #include "keystructs.h"
 
 #include "hash.h"
 #include "keystructs.h"
@@ -54,7 +55,7 @@ void destroyhash(void)
                 * TODO: The problem is the object has pointers that
                 * need freed too.
                 */
                 * 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;
                hashtable[i] = NULL;
        }
        elements = 0;
@@ -120,7 +121,7 @@ unsigned long hashelements(void)
        return elements;
 }
 
        return elements;
 }
 
-struct ll *gethashtableentry(int entry)
+struct ll *gethashtableentry(unsigned int entry)
 {
        return hashtable[entry];
 }
 {
        return hashtable[entry];
 }