[newlib-cygwin] Cygwin: net.cc: constify gai_errmap

Corinna Vinschen corinna@sourceware.org
Thu Aug 4 10:56:27 GMT 2022


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

commit 8053ccd44bf3bae3092ca52c4cb5e41f19e813a6
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Aug 4 11:36:24 2022 +0200

    Cygwin: net.cc: constify gai_errmap
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/net.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 62c7cf807..087248439 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -2883,7 +2883,7 @@ bad:
 }
 
 /* Cygwin specific wrappers around the gai functions. */
-static struct gai_errmap_t
+static const struct gai_errmap_t
 {
   int w32_errval;
   const char *errtxt;


More information about the Cygwin-cvs mailing list