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>
This commit is contained in:
Ævar Arnfjörð Bjarmason 2022-02-24 10:32:56 +01:00 коммит произвёл Junio C Hamano
Родитель dab1b7905d
Коммит 518f7059a8
1 изменённых файлов: 1 добавлений и 11 удалений

Просмотреть файл

@ -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 {