From 598056d1686127285c389cacbdd20707c350d05a Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sat, 19 Aug 2017 22:39:53 +0200 Subject: Pointer parameter could be declared as pointing to const (callback) --- svr-x11fwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svr-x11fwd.c') diff --git a/svr-x11fwd.c b/svr-x11fwd.c index 2aa57ef..6301aa5 100644 --- a/svr-x11fwd.c +++ b/svr-x11fwd.c @@ -38,7 +38,7 @@ #define X11BASEPORT 6000 #define X11BINDBASE 6010 -static void x11accept(struct Listener* listener, int sock); +static void x11accept(const struct Listener* listener, int sock); static int bindport(int fd); static int send_msg_channel_open_x11(int fd, const struct sockaddr_in* addr); @@ -126,7 +126,7 @@ fail: /* accepts a new X11 socket */ /* returns DROPBEAR_FAILURE or DROPBEAR_SUCCESS */ -static void x11accept(struct Listener* listener, int sock) { +static void x11accept(const struct Listener* listener, int sock) { int fd; struct sockaddr_in addr; -- cgit v1.2.3