summaryrefslogtreecommitdiff
path: root/credential.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-07-01 10:51:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-07-01 19:31:45 (GMT)
commit3d97ea479fdcb88671105e2f2d04064bab110bd5 (patch)
treea27eca58a56879dd07289bc85e46dddcc76e89cd /credential.h
parentebf3c04b262aa27fbb97f8a0156c2347fecafafb (diff)
downloadgit-3d97ea479fdcb88671105e2f2d04064bab110bd5.zip
git-3d97ea479fdcb88671105e2f2d04064bab110bd5.tar.gz
git-3d97ea479fdcb88671105e2f2d04064bab110bd5.tar.bz2
*.h: move some *_INIT to designated initializers
Move *_INIT macros I'll use in a subsequent commits to designated initializers. This isn't required for those follow-up changes, but since next commits will change things in this area, let's use the modern pattern over the old one while we're at it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.h')
-rw-r--r--credential.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/credential.h b/credential.h
index c0e17e3..f430e77 100644
--- a/credential.h
+++ b/credential.h
@@ -128,7 +128,9 @@ struct credential {
char *path;
};
-#define CREDENTIAL_INIT { STRING_LIST_INIT_DUP }
+#define CREDENTIAL_INIT { \
+ .helpers = STRING_LIST_INIT_DUP, \
+}
/* Initialize a credential structure, setting all fields to empty. */
void credential_init(struct credential *);