hashmap.h: use 'unsigned int' for hash-codes everywhere

Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Karsten Blees committed Dec 18, 2013 at 14:41 UTC b6aad994737458177ddf68939719f90e7909f656
2 files changed +2 -2
Documentation/technical/api-hashmap.txt
+1 -1
@@ -80,7 +80,7 @@ prevent expensive resizing. If 0, the table is dynamically resized.
80 If `free_entries` is true, each hashmap_entry in the map is freed as well
81 (using stdlib's free()).
82
83 -`void hashmap_entry_init(void *entry, int hash)`::
83 +`void hashmap_entry_init(void *entry, unsigned int hash)`::
84
85 Initializes a hashmap_entry structure.
86 +
hashmap.h
+1 -1
@@ -43,7 +43,7 @@ extern void hashmap_free(struct hashmap *map, int free_entries);
43
44 /* hashmap_entry functions */
45
46 -static inline void hashmap_entry_init(void *entry, int hash)
46 +static inline void hashmap_entry_init(void *entry, unsigned int hash)
47 {
48 struct hashmap_entry *e = entry;
49 e->hash = hash;