]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/describe.c
hashmap_get{,_from_hash} return "struct hashmap_entry *"
[thirdparty/git.git] / builtin / describe.c
index f5e0a7e03306d1e07b1b9b9193ffa7abe1d50c41..c6d2386b64834576eb98b51b0f62041be0bb5db3 100644 (file)
@@ -76,7 +76,8 @@ static int commit_name_neq(const void *unused_cmp_data,
 
 static inline struct commit_name *find_commit_name(const struct object_id *peeled)
 {
-       return hashmap_get_from_hash(&names, oidhash(peeled), peeled);
+       return hashmap_get_entry_from_hash(&names, oidhash(peeled), peeled,
+                                               struct commit_name, entry);
 }
 
 static int replace_name(struct commit_name *e,