1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +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
* dynamically allocated error message string.
*/
static char *pfl_listen(char *desthost, int destport, char *srcaddr,
int port, ConnectionLayer *cl, Conf *conf,
static char *pfl_listen(const char *desthost, int destport,
const char *srcaddr, int port,
ConnectionLayer *cl, Conf *conf,
struct PortListener **pl_ret, int address_family)
{
const char *err;