mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -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:
@ -352,7 +352,7 @@ DECL_WINDOWS_FUNCTION(GLOBAL, int, select,
|
||||
* Implemented differently depending on the client of winnet.c, and
|
||||
* called by winnet.c to turn on or off WSA*Select for a given socket.
|
||||
*/
|
||||
char *do_select(SOCKET skt, bool enable);
|
||||
const char *do_select(SOCKET skt, bool enable);
|
||||
|
||||
/*
|
||||
* Exports from winselgui.c and winselcli.c, each of which provides an
|
||||
|
Reference in New Issue
Block a user