summaryrefslogtreecommitdiffhomepage
path: root/svr-x11fwd.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-08-19 22:39:53 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-08-19 22:39:53 +0200
commit598056d1686127285c389cacbdd20707c350d05a (patch)
treed821ca44d56c707bd3e6fe35f5cb58ff6eb1ccda /svr-x11fwd.c
parent89e64c631ec8dee41ec4de888548d36887b6ec98 (diff)
Pointer parameter could be declared as pointing to const (callback)
Diffstat (limited to 'svr-x11fwd.c')
-rw-r--r--svr-x11fwd.c4
1 files changed, 2 insertions, 2 deletions
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;