1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Add some missing 'const' in pfl_listen.

This commit is contained in:
Simon Tatham 2018-10-20 22:46:24 +01:00
parent 14f797305a
commit dfb8d5da52

View File

@ -516,8 +516,9 @@ static const PlugVtable PortListener_plugvt = {
* On success, returns NULL and fills in *pl_ret. On error, returns a * On success, returns NULL and fills in *pl_ret. On error, returns a
* dynamically allocated error message string. * dynamically allocated error message string.
*/ */
static char *pfl_listen(char *desthost, int destport, char *srcaddr, static char *pfl_listen(const char *desthost, int destport,
int port, ConnectionLayer *cl, Conf *conf, const char *srcaddr, int port,
ConnectionLayer *cl, Conf *conf,
struct PortListener **pl_ret, int address_family) struct PortListener **pl_ret, int address_family)
{ {
const char *err; const char *err;