summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorLibravatar Eric Wong <e@80x24.org>2019-10-06 23:30:43 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-07 10:20:12 +0900
commite2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7 (patch)
tree976db498f6351b16a1b93574315efdb55d0a810d /t/helper
parenthashmap: remove type arg from hashmap_{get,put,remove}_entry (diff)
downloadtgif-e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7.tar.xz
hashmap_entry: remove first member requirement from docs
Comments stating that "struct hashmap_entry" must be the first member in a struct are no longer valid. Suggested-by: Phillip Wood <phillip.wood123@gmail.com> Signed-off-by: Eric Wong <e@80x24.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-hashmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-hashmap.c b/t/helper/test-hashmap.c
index cc577c8956..f38706216f 100644
--- a/t/helper/test-hashmap.c
+++ b/t/helper/test-hashmap.c
@@ -5,6 +5,7 @@
struct test_entry
{
+ int padding; /* hashmap entry no longer needs to be the first member */
struct hashmap_entry ent;
/* key and value as two \0-terminated strings */
char key[FLEX_ARRAY];