]> git.ipfire.org Git - thirdparty/git.git/commitdiff
imap-send.c: use designated initializers for "struct imap_server_conf"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 24 Feb 2022 09:32:56 +0000 (10:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Feb 2022 23:57:56 +0000 (15:57 -0800)
Cut down a lot on the verbosity of the "server" assignment in
imap-send.c using designated initializers, only the "ssl_verify"
member was being set to a non-NULL non-0 value.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
imap-send.c

index e6090a0346ad4947791a04ffce71ba1d0a8e8e28..5ac6fa9c664b53cf0bd8fdbc2ac7ab66f8292811 100644 (file)
@@ -98,17 +98,7 @@ struct imap_server_conf {
 };
 
 static struct imap_server_conf server = {
-       NULL,   /* name */
-       NULL,   /* tunnel */
-       NULL,   /* host */
-       0,      /* port */
-       NULL,   /* folder */
-       NULL,   /* user */
-       NULL,   /* pass */
-       0,      /* use_ssl */
-       1,      /* ssl_verify */
-       0,      /* use_html */
-       NULL,   /* auth_method */
+       .ssl_verify = 1,
 };
 
 struct imap_socket {