summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-08-06 23:23:02 +0000
committerUlrich Drepper <drepper@redhat.com>1999-08-06 23:23:02 +0000
commitf79973fab37970cadd2994e497a475b1b27400a7 (patch)
treeeaa8ec1530ca090a1fa661291996e326cea97b0d
parent7aa6d2082273c05f52f18135f7ab66186f76dc44 (diff)
downloadglibc-f79973fab37970cadd2994e497a475b1b27400a7.tar.gz
glibc-f79973fab37970cadd2994e497a475b1b27400a7.tar.xz
glibc-f79973fab37970cadd2994e497a475b1b27400a7.zip
Update.
	* inet/netinet/in.h (IN6ADDR_ANY_INIT): Add correct number of
	braces to avoid warnings.
	(IN6ADDR_LOOPBACK_INIT): Likewise.
-rw-r--r--ChangeLog4
-rw-r--r--inet/netinet/in.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 82d73a5229..9fcbdde49a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 1999-08-06  Ulrich Drepper  <drepper@cygnus.com>
 
+	* inet/netinet/in.h (IN6ADDR_ANY_INIT): Add correct number of
+	braces to avoid warnings.
+	(IN6ADDR_LOOPBACK_INIT): Likewise.
+
 	* sysdeps/unix/sysv/linux/bits/socket.h: Fix typo (MSG_TRUNC ->
 	MSG_DONTWAIT).
 
diff --git a/inet/netinet/in.h b/inet/netinet/in.h
index fc8f169bcf..10dae19d34 100644
--- a/inet/netinet/in.h
+++ b/inet/netinet/in.h
@@ -177,8 +177,8 @@ struct in6_addr
 
 extern const struct in6_addr in6addr_any;        /* :: */
 extern const struct in6_addr in6addr_loopback;   /* ::1 */
-#define IN6ADDR_ANY_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
-#define IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
+#define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
+#define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
 
 #define INET_ADDRSTRLEN 16
 #define INET6_ADDRSTRLEN 46