]> git.ipfire.org Git - thirdparty/git.git/blobdiff - name-hash.c
hashmap_get{,_from_hash} return "struct hashmap_entry *"
[thirdparty/git.git] / name-hash.c
index 73b83adf3d03e52d9211469e998cbceee24a90c2..aa8253ddd554208c4923c5c83a6330fc5790cbc1 100644 (file)
@@ -35,7 +35,8 @@ static struct dir_entry *find_dir_entry__hash(struct index_state *istate,
        struct dir_entry key;
        hashmap_entry_init(&key.ent, hash);
        key.namelen = namelen;
-       return hashmap_get(&istate->dir_hash, &key.ent, name);
+       return hashmap_get_entry(&istate->dir_hash, &key, name,
+                                       struct dir_entry, ent);
 }
 
 static struct dir_entry *find_dir_entry(struct index_state *istate,