projects
/
onak.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix db4 backend - we weren't actually providing a suitable dbfuncs struct.
[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];
}