imap-send.c: use designated initializers for "struct imap_server_conf"
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>
Ævar Arnfjörð Bjarmason committed
Feb 24, 2022 at 10:32 UTC
518f7059a82cbf08080ee385d91e557df53a1560
1 file changed
+1
-11
imap-send.c
+1
-11
@@ -98,17 +98,7 @@ struct imap_server_conf {
98
};
99
100
static struct imap_server_conf server = {
101
- NULL, /* name */
102
- NULL, /* tunnel */
103
- NULL, /* host */
104
- 0, /* port */
105
- NULL, /* folder */
106
- NULL, /* user */
107
- NULL, /* pass */
108
- 0, /* use_ssl */
109
- 1, /* ssl_verify */
110
- 0, /* use_html */
111
- NULL, /* auth_method */
101
+ .ssl_verify = 1,
102
};
103
104
struct imap_socket {