X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d..05b75f8d50b83e943af3be4071449304d82dbdcd:/lib/sendmail.c diff --git a/lib/sendmail.c b/lib/sendmail.c index 95ad2a1..8f75343 100644 --- a/lib/sendmail.c +++ b/lib/sendmail.c @@ -18,10 +18,8 @@ * USA */ -#include -#include "types.h" +#include "common.h" -#include #include #include #include @@ -210,14 +208,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 */