X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/5aff007d8fcfb4c6cc3c3627ae15f45562db7a0d..f942204699420d6ec55f3d77cd29f0f096147f34:/server/speaker-network.c diff --git a/server/speaker-network.c b/server/speaker-network.c index 73d59b8..2d8d2cb 100644 --- a/server/speaker-network.c +++ b/server/speaker-network.c @@ -20,8 +20,7 @@ /** @file server/speaker-network.c * @brief Support for @ref BACKEND_NETWORK */ -#include -#include "types.h" +#include "common.h" #include #include @@ -29,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -84,24 +82,16 @@ static int audio_errors; static void network_init(void) { struct addrinfo *res, *sres; static const struct addrinfo pref = { - 0, - PF_INET, - SOCK_DGRAM, - IPPROTO_UDP, - 0, - 0, - 0, - 0 + .ai_flags = 0, + .ai_family = PF_INET, + .ai_socktype = SOCK_DGRAM, + .ai_protocol = IPPROTO_UDP, }; static const struct addrinfo prefbind = { - AI_PASSIVE, - PF_INET, - SOCK_DGRAM, - IPPROTO_UDP, - 0, - 0, - 0, - 0 + .ai_flags = AI_PASSIVE, + .ai_family = PF_INET, + .ai_socktype = SOCK_DGRAM, + .ai_protocol = IPPROTO_UDP, }; static const int one = 1; int sndbuf, target_sndbuf = 131072;