Make it even build.

This commit is contained in:
Arnaud Cornet 2007-12-29 18:17:50 +01:00
parent 95618a06ab
commit 8b8024b81e
1 changed files with 2 additions and 1 deletions

View File

@ -443,6 +443,7 @@ static int hash_item_cmp(struct hash_item *a, char *b)
void hash_init(hash_t *h, int options)
{
int i;
memset(h, 0, sizeof(hash_t));
for (i = 0; i < 256; i++) {
switch (options) {
@ -463,7 +464,7 @@ void hash_init(hash_t *h, int options)
void hash_clean(hash_t *h)
{
int i;
hash_item_t *hi;
struct hash_item *hi;
for (i = 0; i < 256; i++) {
while ((hi = list_remove_first(&h->lists[i]))) {