From e59beeb6250ba31cfb0ba5efbad0cda2329ed41c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 23 Apr 2015 10:08:30 +0200 Subject: [PATCH] fixed "missing braces around initializer" for IN6ADDR_*_INIT macros --- src/include/lwip/inet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/lwip/inet.h b/src/include/lwip/inet.h index 33a9d3db..2a13b24a 100644 --- a/src/include/lwip/inet.h +++ b/src/include/lwip/inet.h @@ -78,10 +78,10 @@ struct in6_addr { /** This macro can be used to initialize a variable of type struct in6_addr to the IPv6 wildcard address. */ -#define IN6ADDR_ANY_INIT {0,0,0,0} +#define IN6ADDR_ANY_INIT {{{0,0,0,0}}} /** This macro can be used to initialize a variable of type struct in6_addr to the IPv6 loopback address. */ -#define IN6ADDR_LOOPBACK_INIT {0,0,0,PP_HTONL(1)} +#define IN6ADDR_LOOPBACK_INIT {{{0,0,0,PP_HTONL(1)}}} /** This variable is initialized by the system to contain the wildcard IPv6 address. */ extern const struct in6_addr in6addr_any;