From 28ee7941280828f9e528bd8c5d0f6515a57e0c44 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 6 Oct 2019 23:30:31 +0000 Subject: 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 Reviewed-by: Derrick Stolee Signed-off-by: Junio C Hamano --- hashmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hashmap.h') diff --git a/hashmap.h b/hashmap.h index ef83f9431d..c4c31b462f 100644 --- a/hashmap.h +++ b/hashmap.h @@ -349,7 +349,7 @@ void *hashmap_put(struct hashmap *map, void *entry); * * Argument explanation is the same as in `hashmap_get`. */ -void *hashmap_remove(struct hashmap *map, const void *key, +void *hashmap_remove(struct hashmap *map, const struct hashmap_entry *key, const void *keydata); /* -- cgit v1.2.3