summaryrefslogtreecommitdiffhomepage
path: root/svr-agentfwd.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-agentfwd.c
parent89e64c631ec8dee41ec4de888548d36887b6ec98 (diff)
Pointer parameter could be declared as pointing to const (callback)
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r--svr-agentfwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index 5686aea..6289b87 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -45,7 +45,7 @@
static int send_msg_channel_open_agent(int fd);
static int bindagent(int fd, struct ChanSess * chansess);
-static void agentaccept(struct Listener * listener, int sock);
+static void agentaccept(const struct Listener * listener, int sock);
/* Handles client requests to start agent forwarding, sets up listening socket.
* Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
@@ -100,7 +100,7 @@ fail:
/* accepts a connection on the forwarded socket and opens a new channel for it
* back to the client */
/* returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
-static void agentaccept(struct Listener *UNUSED(listener), int sock) {
+static void agentaccept(const struct Listener *UNUSED(listener), int sock) {
int fd;