1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-09 23:28:06 -05:00

Fix warning about mismatched constness.

This commit is contained in:
Tim Kosse 2015-08-11 14:18:13 +02:00 committed by Simon Tatham
parent 6539d39755
commit 9965cd8a53

View 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. */