X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/95ceb9eae3ff08162d7e17be5ce82090d78cb269..ddf0e06b99c52ed416f19432be45b71238d0b877:/tests/udplog.c diff --git a/tests/udplog.c b/tests/udplog.c index 0aa8f59..f8839c8 100644 --- a/tests/udplog.c +++ b/tests/udplog.c @@ -18,8 +18,7 @@ * USA */ -#include -#include "types.h" +#include "common.h" #include #include @@ -81,14 +80,10 @@ int main(int argc, char **argv) { fd_set fds; struct timeval tv; static const struct addrinfo pref = { - 0, /* ai_flags */ - AF_UNSPEC, /* ai_family */ - SOCK_DGRAM, /* ai_socktype */ - IPPROTO_UDP, /* ai_protocol */ - 0, - 0, - 0, - 0 + .ai_flags = 0, + .ai_family = AF_UNSPEC, + .ai_socktype = SOCK_DGRAM, + .ai_protocol = IPPROTO_UDP, }; set_progname(argv);