]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix warning about mismatched constness.
authorTim Kosse <tim.kosse@filezilla-project.org>
Tue, 11 Aug 2015 12:18:13 +0000 (14:18 +0200)
committerSimon Tatham <anakin@pobox.com>
Sat, 15 Aug 2015 12:54:46 +0000 (13:54 +0100)
windows/winnet.c

index c7f68ef942b27908eb6d08482e5a3b7a6f9f5242..e1beb5d194b40e38d562bb4928aa672f898685cb 100644 (file)
@@ -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. */