summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-06 23:30:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-07 01:20:12 (GMT)
commite2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7 (patch)
tree976db498f6351b16a1b93574315efdb55d0a810d /attr.c
parent404ab78e39fc74c4eb604b6003642ed264f687a6 (diff)
downloadgit-e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7.zip
git-e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7.tar.gz
git-e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7.tar.bz2
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 'attr.c')
-rw-r--r--attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/attr.c b/attr.c
index 15f0efd..e5c951d 100644
--- a/attr.c
+++ b/attr.c
@@ -62,7 +62,7 @@ static struct attr_hashmap g_attr_hashmap;
/* The container for objects stored in "struct attr_hashmap" */
struct attr_hash_entry {
- struct hashmap_entry ent; /* must be the first member! */
+ struct hashmap_entry ent;
const char *key; /* the key; memory should be owned by value */
size_t keylen; /* length of the key */
void *value; /* the stored value */