mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -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:
@ -45,7 +45,7 @@ SOCKET winselcli_unique_socket(void)
|
||||
return *p;
|
||||
}
|
||||
|
||||
char *do_select(SOCKET skt, bool enable)
|
||||
const char *do_select(SOCKET skt, bool enable)
|
||||
{
|
||||
/* Check everything's been set up, for convenience of callers. */
|
||||
winselcli_setup();
|
||||
|
Reference in New Issue
Block a user