chiark / gitweb /
Missing address family member in sockaddrs.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 5 Apr 2009 09:28:13 +0000 (10:28 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 5 Apr 2009 09:28:13 +0000 (10:28 +0100)
libtests/t-addr.c

index 7710212..e33a1d6 100644 (file)
@@ -33,6 +33,7 @@ static void test_addr(void) {
   };
 
   struct sockaddr_in a1 = {
+    .sin_family = AF_INET,
     .sin_port = ntohs(25),
     .sin_addr = { .s_addr = 0}
   };
@@ -45,6 +46,7 @@ static void test_addr(void) {
   };
 
   struct sockaddr_in a2 = {
+    .sin_family = AF_INET,
     .sin_port = ntohs(119),
     .sin_addr = { .s_addr = htonl(0x7F000001) }
   };