diff options
author | Eric Wong <e@80x24.org> | 2019-10-07 01:30:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 03:20:10 +0200 |
commit | 28ee7941280828f9e528bd8c5d0f6515a57e0c44 (patch) | |
tree | 8ccc5bad88aad148e83cccfd1835752188d8640a /hashmap.h | |
parent | hashmap_get takes "const struct hashmap_entry *" (diff) | |
download | git-28ee7941280828f9e528bd8c5d0f6515a57e0c44.tar.xz git-28ee7941280828f9e528bd8c5d0f6515a57e0c44.zip |
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>
Diffstat (limited to 'hashmap.h')
-rw-r--r-- | hashmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); /* |