summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash.c b/hash.c
index 135380b..c2cf9ca 100644
--- a/hash.c
+++ b/hash.c
@@ -79,7 +79,7 @@ destroyHashTable(HashTablePtr table)
char *
getHash(HashTablePtr table, const char *key)
{
- int i = hash(key);
+ unsigned int i = hash(key);
HashBucketPtr bp;
for(bp = table[i]; bp; bp = bp->next) {
if(strcasecmp(bp->key, key) == 0)
@@ -91,7 +91,7 @@ getHash(HashTablePtr table, const char *key)
int
putHash(HashTablePtr table, char *key, char *value, int prio)
{
- int i = hash(key);
+ unsigned int i = hash(key);
char *keycopy = NULL, *valuecopy = NULL;
HashBucketPtr bp;
for(bp = table[i]; bp; bp = bp->next) {