Prevents warnings from showing up when using the
macros IN6ADDR_ANY_INIT or IN6ADDR_LOOPBACK_INIT

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1067426

OK to apply?
>From b8e8160da0648fc0406b028a2bff0938d9b9175e Mon Sep 17 00:00:00 2001
From: Erik van Pienbroek <epien...@fedoraproject.org>
Date: Thu, 29 May 2014 15:06:20 +0200
Subject: [PATCH] Use correct initializer for IN6ADDR macros

Prevents warnings from showing up when using the
macros IN6ADDR_ANY_INIT or IN6ADDR_LOOPBACK_INIT

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1067426
---
 mingw-w64-headers/include/ws2tcpip.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mingw-w64-headers/include/ws2tcpip.h b/mingw-w64-headers/include/ws2tcpip.h
index a428312..5d6afb9 100644
--- a/mingw-w64-headers/include/ws2tcpip.h
+++ b/mingw-w64-headers/include/ws2tcpip.h
@@ -73,8 +73,8 @@ struct ip_msfilter {
 
 #define SS_PORT(ssp) (((struct sockaddr_in*)(ssp))->sin_port)
 
-#define IN6ADDR_ANY_INIT { 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 } } }
 
 #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
 
-- 
1.9.3

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to