From dfb8d5da527468d7b19fc29aff8dcf465314c461 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 20 Oct 2018 22:46:24 +0100 Subject: [PATCH] Add some missing 'const' in pfl_listen. --- portfwd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/portfwd.c b/portfwd.c index 5d8250ca..6165df15 100644 --- a/portfwd.c +++ b/portfwd.c @@ -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;