mirror of
https://github.com/git/git.git
synced 2026-06-30 19:58:12 +00: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
@@ -58,7 +58,7 @@ void subprocess_stop(struct hashmap *hashmap, struct subprocess_entry *entry)
|
||||
kill(entry->process.pid, SIGTERM);
|
||||
finish_command(&entry->process);
|
||||
|
||||
hashmap_remove(hashmap, entry, NULL);
|
||||
hashmap_remove(hashmap, &entry->ent, NULL);
|
||||
}
|
||||
|
||||
static void subprocess_exit_handler(struct child_process *process)
|
||||
|
||||
Reference in New Issue
Block a user