[PATCH 01/12] imap-send.c: use designated initializers for "struct imap_server_conf"
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Feb 24, 2022, 09:32 UTC
- Message-ID
- <patch-01.12-e4a7054bef4-20220224T092805Z-avarab@gmail.com>
- In-Reply-To
- <cover-00.12-00000000000-20220224T092805Z-avarab@gmail.com>
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> --- imap-send.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/imap-send.c b/imap-send.c index e6090a0346a..5ac6fa9c664 100644 --- a/imap-send.c +++ b/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 {
-- 2.35.1.1157.g524e2d5a0db