Skip to content

Commit 518f705

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dab1b79 commit 518f705

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

imap-send.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,7 @@ struct imap_server_conf {
9898
};
9999

100100
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,
112102
};
113103

114104
struct imap_socket {

0 commit comments

Comments
 (0)