From ffb4edc3e34f5cb4fc9a0dbc53cd61bee0ab0884 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 13 Aug 2006 14:53:45 +0000 Subject: [PATCH] Removed designated union initializers from recent change to avoid dependence on ISO C99 compliant compilers. --- core/net/uip.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/net/uip.c b/core/net/uip.c index 692997c9c..3af0f39ce 100644 --- a/core/net/uip.c +++ b/core/net/uip.c @@ -41,7 +41,7 @@ * * This file is part of the uIP TCP/IP stack. * - * $Id: uip.c,v 1.3 2006/08/10 16:43:32 bg- Exp $ + * $Id: uip.c,v 1.4 2006/08/13 14:53:45 oliverschmidt Exp $ * */ @@ -104,15 +104,15 @@ uip_ipaddr_t uip_hostaddr, uip_draddr, uip_netmask; const uip_ipaddr_t uip_broadcast_addr = #if UIP_CONF_IPV6 - { .u16 = {0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff} }; + {0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff}; #else /* UIP_CONF_IPV6 */ - { .u16 = {0xffff,0xffff} }; + {0xffff,0xffff}; #endif /* UIP_CONF_IPV6 */ const uip_ipaddr_t all_zeroes_addr = #if UIP_CONF_IPV6 - { .u16 = {0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000} }; + {0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000}; #else /* UIP_CONF_IPV6 */ - { .u16 = {0x0000,0x0000} }; + {0x0000,0x0000}; #endif /* UIP_CONF_IPV6 */