chiark / gitweb /
struct addrinfo varies in order between platforms, forcing us to fall
[disorder] / tests / udplog.c
index 0aa8f595c4346e36a1316dd5f9bc2ceb41937943..7e580f2522ecf616f70de4e5ac661f9885c9c97e 100644 (file)
@@ -81,14 +81,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);