https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=aaa7d1f14abb87a6c9ddec43f2274fb1f66efdc7

commit aaa7d1f14abb87a6c9ddec43f2274fb1f66efdc7
Author: Alexey Pavlov <alex...@gmail.com>
Date:   Fri Mar 13 10:38:49 2015 +0100

    net.cc: Remove extra braces.
    
    Signed-off-by: Corinna Vinschen <cori...@vinschen.de>

Diff:
---
 winsup/cygwin/ChangeLog | 5 +++++
 winsup/cygwin/net.cc    | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1305dfa..225744c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-13  Alexey Pavlov  <alex...@gmail.com>
+
+       * net.cc (in6addr_any): Remove redundant braces.
+       (in6addr_loopback): Ditto.
+
 2015-03-12  Alexey Pavlov  <alex...@gmail.com>
 
        * include/cygwin/version.h: Fix typo.
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index e06fd52..f9b317c 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -79,8 +79,8 @@ extern "C"
                 const unsigned char *);
 }                              /* End of "C" section */
 
-const struct in6_addr in6addr_any = {{IN6ADDR_ANY_INIT}};
-const struct in6_addr in6addr_loopback = {{IN6ADDR_LOOPBACK_INIT}};
+const struct in6_addr in6addr_any = IN6ADDR_ANY_INIT;
+const struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
 
 static fhandler_socket *
 get (const int fd)

Reply via email to