hashmap_remove takes "const struct hashmap_entry *"
This is less error-prone than "const void *" as the compiler now detects invalid types being passed. Signed-off-by: Eric Wong <e@80x24.org> Reviewed-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
b6c5241606
commit
28ee794128
@ -2001,7 +2001,7 @@ static void remove_hashmap_entries(struct hashmap *dir_renames,
|
||||
|
||||
for (i = 0; i < items_to_remove->nr; i++) {
|
||||
entry = items_to_remove->items[i].util;
|
||||
hashmap_remove(dir_renames, entry, NULL);
|
||||
hashmap_remove(dir_renames, &entry->ent, NULL);
|
||||
}
|
||||
string_list_clear(items_to_remove, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user