chiark / gitweb /
Get in-UI man pages working again
[disorder] / server / state.c
index e9525561a84daf8d79c846b6864baa5da952ab6e..3adcf2b88fcf51ef1d651d5d0c00e0e7e8e5979e 100644 (file)
@@ -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 */