X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/136ef3a3547288ed511cec74d71ca93d6a52b700..666130346faf921dfaa1a4d30f40ffe5354e14de:/lib/sendmail.c?ds=inline diff --git a/lib/sendmail.c b/lib/sendmail.c index 95ad2a1..2e0df8f 100644 --- a/lib/sendmail.c +++ b/lib/sendmail.c @@ -210,14 +210,10 @@ int sendmail(const char *sender, FILE *in, *out; static const struct addrinfo pref = { - 0, - PF_INET, - SOCK_STREAM, - IPPROTO_TCP, - 0, - 0, - 0, - 0 + .ai_flags = 0, + .ai_family = PF_INET, + .ai_socktype = SOCK_STREAM, + .ai_protocol = IPPROTO_TCP, }; /* Find the SMTP server */