comparison svr-agentfwd.c @ 1459:06d52bcb8094

Pointer parameter could be declared as pointing to const
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 17:16:13 +0200
parents 750ec4ec4cbe
children 58a74cb829b8
comparison
equal deleted inserted replaced
1458:bdd3802c8ac6 1459:06d52bcb8094
116 116
117 } 117 }
118 118
119 /* set up the environment variable pointing to the socket. This is called 119 /* set up the environment variable pointing to the socket. This is called
120 * just before command/shell execution, after dropping privileges */ 120 * just before command/shell execution, after dropping privileges */
121 void svr_agentset(struct ChanSess * chansess) { 121 void svr_agentset(const struct ChanSess * chansess) {
122 122
123 char *path = NULL; 123 char *path = NULL;
124 int len; 124 int len;
125 125
126 if (chansess->agentlistener == NULL) { 126 if (chansess->agentlistener == NULL) {