From 03cfda89d135576ba458e6da0b337aea198d00c7 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 29 Apr 2022 11:54:36 +0100 Subject: [PATCH] Windows: make SockAddr's error field const char *. We're assigning string literals into it all over the place, so it should have been const char * all along. No thanks to any of the compilers that didn't point that out! --- windows/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/network.c b/windows/network.c index acc74034..24b14e7b 100644 --- a/windows/network.c +++ b/windows/network.c @@ -103,7 +103,7 @@ typedef enum SuperFamily { struct SockAddr { int refcount; - char *error; + const char *error; SuperFamily superfamily; #ifndef NO_IPV6 struct addrinfo *ais; /* Addresses IPv6 style. */