X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/0590cedca75c01811972b2f694f60f24028ee973..448d3570a4b73f0056c4bb61c5d80e4778a5e0bd:/lib/sendmail.c diff --git a/lib/sendmail.c b/lib/sendmail.c index f7b0155..2e0df8f 100644 --- a/lib/sendmail.c +++ b/lib/sendmail.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder - * Copyright (C) 2007 Richard Kettlewell + * Copyright (C) 2007-2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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 */