X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d..bca4e2b7171bae3d818248057cdc4ffbb5683bf0:/server/state.c diff --git a/server/state.c b/server/state.c index e952556..3adcf2b 100644 --- a/server/state.c +++ b/server/state.c @@ -69,14 +69,10 @@ static void reset_socket(ev_source *ev) { char *name; static const struct addrinfo pref = { - AI_PASSIVE, - PF_INET, - SOCK_STREAM, - IPPROTO_TCP, - 0, - 0, - 0, - 0 + .ai_flags = AI_PASSIVE, + .ai_family = PF_INET, + .ai_socktype = SOCK_STREAM, + .ai_protocol = IPPROTO_TCP, }; /* unix first */