]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs.c
hashmap_get{,_from_hash} return "struct hashmap_entry *"
[thirdparty/git.git] / refs.c
diff --git a/refs.c b/refs.c
index 3e5503125666abeaa0fa99c14bf91bc0011b7c3d..43a95105f18d4c7ea2f010fd053a3c0243f63adc 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -1815,12 +1815,15 @@ static struct ref_store *lookup_ref_store_map(struct hashmap *map,
                                              const char *name)
 {
        struct ref_store_hash_entry *entry;
+       unsigned int hash;
 
        if (!map->tablesize)
                /* It's initialized on demand in register_ref_store(). */
                return NULL;
 
-       entry = hashmap_get_from_hash(map, strhash(name), name);
+       hash = strhash(name);
+       entry = hashmap_get_entry_from_hash(map, hash, name,
+                                       struct ref_store_hash_entry, ent);
        return entry ? entry->refs : NULL;
 }