summaryrefslogtreecommitdiff
path: root/svr-agentfwd.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
commit63300b49f30b3d63a551d4d568ae95fea24035ba (patch)
treef0cbad938d5ecac73806a7d9a5ae25268086fb31 /svr-agentfwd.c
parent2eb1f9f6e588a675226bfefb379156378b065422 (diff)
downloaddropbear-63300b49f30b3d63a551d4d568ae95fea24035ba.tar.gz
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r--svr-agentfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index d88f203..5686aea 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -118,7 +118,7 @@ static void agentaccept(struct Listener *UNUSED(listener), int sock) {
/* set up the environment variable pointing to the socket. This is called
* just before command/shell execution, after dropping privileges */
-void svr_agentset(struct ChanSess * chansess) {
+void svr_agentset(const struct ChanSess * chansess) {
char *path = NULL;
int len;