]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
hashmap: remove type arg from hashmap_{get,put,remove}_entry
[thirdparty/git.git] / config.c
index 77ed00bfbf87f8d9505a9369f078d08fe4e66e3c..a4fa464ed261cb799badb23685198750796eae9a 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1863,8 +1863,7 @@ static struct config_set_element *configset_find_element(struct config_set *cs,
 
        hashmap_entry_init(&k.ent, strhash(normalized_key));
        k.key = normalized_key;
-       found_entry = hashmap_get_entry(&cs->config_hash, &k, NULL,
-                               struct config_set_element, ent);
+       found_entry = hashmap_get_entry(&cs->config_hash, &k, ent, NULL);
        free(normalized_key);
        return found_entry;
 }