зеркало из https://github.com/microsoft/git.git
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:
Родитель
dab1b7905d
Коммит
518f7059a8
12
imap-send.c
12
imap-send.c
|
@ -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 {
|
||||
|
|
Загрузка…
Ссылка в новой задаче