mirror of
https://github.com/git/git.git
synced 2025-09-10 22:44:50 +02:00
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
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user