diff options
author | Eric Wong <e@80x24.org> | 2019-10-06 23:30:32 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 10:20:10 +0900 |
commit | 26b455f21ed7e0c7b0e4e4e69b5ae48545597020 (patch) | |
tree | 0c0a69083353100d2f637322791f4499e8cb27bf /builtin/fast-export.c | |
parent | hashmap_remove takes "const struct hashmap_entry *" (diff) | |
download | tgif-26b455f21ed7e0c7b0e4e4e69b5ae48545597020.tar.xz |
hashmap_put takes "struct hashmap_entry *"
This is less error-prone than "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 'builtin/fast-export.c')
-rw-r--r-- | builtin/fast-export.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fast-export.c b/builtin/fast-export.c index c693cf6a8c..192e21dae4 100644 --- a/builtin/fast-export.c +++ b/builtin/fast-export.c @@ -160,7 +160,7 @@ static const void *anonymize_mem(struct hashmap *map, ret->orig_len = *len; ret->anon = generate(orig, len); ret->anon_len = *len; - hashmap_put(map, ret); + hashmap_put(map, &ret->hash); } *len = ret->anon_len; |