comparison 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
comparison
equal deleted inserted replaced
1505:55120acb9994 1508:47f36d8565cf
51 static void addchildpid(struct ChanSess *chansess, pid_t pid); 51 static void addchildpid(struct ChanSess *chansess, pid_t pid);
52 static void sesssigchild_handler(int val); 52 static void sesssigchild_handler(int val);
53 static void closechansess(const struct Channel *channel); 53 static void closechansess(const struct Channel *channel);
54 static int newchansess(struct Channel *channel); 54 static int newchansess(struct Channel *channel);
55 static void chansessionrequest(struct Channel *channel); 55 static void chansessionrequest(struct Channel *channel);
56 static int sesscheckclose(struct Channel *channel); 56 static int sesscheckclose(const struct Channel *channel);
57 57
58 static void send_exitsignalstatus(const struct Channel *channel); 58 static void send_exitsignalstatus(const struct Channel *channel);
59 static void send_msg_chansess_exitstatus(const struct Channel * channel, 59 static void send_msg_chansess_exitstatus(const struct Channel * channel,
60 const struct ChanSess * chansess); 60 const struct ChanSess * chansess);
61 static void send_msg_chansess_exitsignal(const struct Channel * channel, 61 static void send_msg_chansess_exitsignal(const struct Channel * channel,
72 }; 72 };
73 73
74 /* required to clear environment */ 74 /* required to clear environment */
75 extern char** environ; 75 extern char** environ;
76 76
77 static int sesscheckclose(struct Channel *channel) { 77 static int sesscheckclose(const struct Channel *channel) {
78 struct ChanSess *chansess = (struct ChanSess*)channel->typedata; 78 struct ChanSess *chansess = (struct ChanSess*)channel->typedata;
79 TRACE(("sesscheckclose, pid is %d", chansess->exit.exitpid)) 79 TRACE(("sesscheckclose, pid is %d", chansess->exit.exitpid))
80 return chansess->exit.exitpid != -1; 80 return chansess->exit.exitpid != -1;
81 } 81 }
82 82