]> git.ipfire.org Git - thirdparty/git.git/blobdiff - blame.c
hashmap: remove type arg from hashmap_{get,put,remove}_entry
[thirdparty/git.git] / blame.c
diff --git a/blame.c b/blame.c
index 90b247abf93336240a83a159ca41b1024ff80431..6384f4813368ce95a77d0e66f2bacf8e67d0f412 100644 (file)
--- a/blame.c
+++ b/blame.c
@@ -419,8 +419,8 @@ static void get_fingerprint(struct fingerprint *result,
                        continue;
                hashmap_entry_init(&entry->entry, hash);
 
-               found_entry = hashmap_get_entry(&result->map, entry, NULL,
-                                       struct fingerprint_entry, entry);
+               found_entry = hashmap_get_entry(&result->map, entry,
+                                               /* member name */ entry, NULL);
                if (found_entry) {
                        found_entry->count += 1;
                } else {
@@ -452,8 +452,7 @@ static int fingerprint_similarity(struct fingerprint *a, struct fingerprint *b)
 
        hashmap_for_each_entry(&b->map, &iter, entry_b,
                                entry /* member name */) {
-               entry_a = hashmap_get_entry(&a->map, entry_b, NULL,
-                                       struct fingerprint_entry, entry);
+               entry_a = hashmap_get_entry(&a->map, entry_b, entry, NULL);
                if (entry_a) {
                        intersection += entry_a->count < entry_b->count ?
                                        entry_a->count : entry_b->count;
@@ -474,8 +473,7 @@ static void fingerprint_subtract(struct fingerprint *a, struct fingerprint *b)
 
        hashmap_for_each_entry(&b->map, &iter, entry_b,
                                entry /* member name */) {
-               entry_a = hashmap_get_entry(&a->map, entry_b, NULL,
-                                       struct fingerprint_entry, entry);
+               entry_a = hashmap_get_entry(&a->map, entry_b, entry, NULL);
                if (entry_a) {
                        if (entry_a->count <= entry_b->count)
                                hashmap_remove(&a->map, &entry_b->entry, NULL);