]> git.ipfire.org Git - thirdparty/git.git/blobdiff - oidmap.c
hashmap_put takes "struct hashmap_entry *"
[thirdparty/git.git] / oidmap.c
index 6d6e840d037657721a5aa975e2567c8415547d93..cd22b3a8bf4b745253c2539867611de3e455acd6 100644 (file)
--- a/oidmap.c
+++ b/oidmap.c
@@ -51,5 +51,5 @@ void *oidmap_put(struct oidmap *map, void *entry)
                oidmap_init(map, 0);
 
        hashmap_entry_init(&to_put->internal_entry, oidhash(&to_put->oid));
-       return hashmap_put(&map->map, to_put);
+       return hashmap_put(&map->map, &to_put->internal_entry);
 }