From 9965cd8a53b88715bcfbd942ed90c4581a4c53d8 Mon Sep 17 00:00:00 2001 From: Tim Kosse Date: Tue, 11 Aug 2015 14:18:13 +0200 Subject: [PATCH] Fix warning about mismatched constness. --- windows/winnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/winnet.c b/windows/winnet.c index c7f68ef9..e1beb5d1 100644 --- a/windows/winnet.c +++ b/windows/winnet.c @@ -1658,7 +1658,7 @@ int select_result(WPARAM wParam, LPARAM lParam) ret = p_recv(s->s, buf, sizeof(buf), MSG_OOB); noise_ultralight(ret); if (ret <= 0) { - char *str = (ret == 0 ? "Internal networking trouble" : + const char *str = (ret == 0 ? "Internal networking trouble" : winsock_error_string(p_WSAGetLastError())); /* We're inside the Windows frontend here, so we know * that the frontend handle is unnecessary. */