chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
redirect()
[disorder]
/
server
/
speaker-network.c
diff --git
a/server/speaker-network.c
b/server/speaker-network.c
index 73d59b805cacf13c6aa3f7a7265b05f1907e8ee8..b77334ce163c78edfc8fd61c7ebdaa35b61362a7 100644
(file)
--- a/
server/speaker-network.c
+++ b/
server/speaker-network.c
@@
-84,24
+84,16
@@
static int audio_errors;
static void network_init(void) {
struct addrinfo *res, *sres;
static const struct addrinfo pref = {
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 = {
};
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;
};
static const int one = 1;
int sndbuf, target_sndbuf = 131072;