diff svr-chansession.c @ 1508:47f36d8565cf

more linting (#55) * dropbear_exit: remove priority parameter confusion with dropbear_log() * const parameter
author François Perrad <francois.perrad@gadz.org>
date Sat, 17 Feb 2018 04:27:37 +0100
parents 2d450c1056e3
children 79eef94ccea9
line wrap: on
line diff
--- a/svr-chansession.c	Fri Feb 16 19:35:32 2018 +0400
+++ b/svr-chansession.c	Sat Feb 17 04:27:37 2018 +0100
@@ -53,7 +53,7 @@
 static void closechansess(const struct Channel *channel);
 static int newchansess(struct Channel *channel);
 static void chansessionrequest(struct Channel *channel);
-static int sesscheckclose(struct Channel *channel);
+static int sesscheckclose(const struct Channel *channel);
 
 static void send_exitsignalstatus(const struct Channel *channel);
 static void send_msg_chansess_exitstatus(const struct Channel * channel,
@@ -74,7 +74,7 @@
 /* required to clear environment */
 extern char** environ;
 
-static int sesscheckclose(struct Channel *channel) {
+static int sesscheckclose(const struct Channel *channel) {
 	struct ChanSess *chansess = (struct ChanSess*)channel->typedata;
 	TRACE(("sesscheckclose, pid is %d", chansess->exit.exitpid))
 	return chansess->exit.exitpid != -1;