1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-18 19:41:01 -05:00

Const-correctness in do_select() return value.

The error message it returns on failure is a string literal, so it
shouldn't be returned as a mutable 'char *'.
This commit is contained in:
Simon Tatham
2020-01-01 15:46:59 +00:00
parent b89d17fbca
commit 58e2a35bdf
4 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ void winselgui_clear_hwnd(void)
winsel_hwnd = NULL;
}
char *do_select(SOCKET skt, bool enable)
const char *do_select(SOCKET skt, bool enable)
{
int msg, events;
if (enable) {