mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
more linting (#55)
* dropbear_exit: remove priority parameter confusion with dropbear_log() * const parameter
This commit is contained in:
parent
017e2f07a7
commit
f042eb41ab
@ -94,9 +94,9 @@ struct Channel {
|
|||||||
struct ChanType {
|
struct ChanType {
|
||||||
|
|
||||||
int sepfds; /* Whether this channel has separate pipes for in/out or not */
|
int sepfds; /* Whether this channel has separate pipes for in/out or not */
|
||||||
char *name;
|
const char *name;
|
||||||
int (*inithandler)(struct Channel*);
|
int (*inithandler)(struct Channel*);
|
||||||
int (*check_close)(struct Channel*);
|
int (*check_close)(const struct Channel*);
|
||||||
void (*reqhandler)(struct Channel*);
|
void (*reqhandler)(struct Channel*);
|
||||||
void (*closehandler)(const struct Channel*);
|
void (*closehandler)(const struct Channel*);
|
||||||
};
|
};
|
||||||
|
@ -53,7 +53,7 @@ static void sesssigchild_handler(int val);
|
|||||||
static void closechansess(const struct Channel *channel);
|
static void closechansess(const struct Channel *channel);
|
||||||
static int newchansess(struct Channel *channel);
|
static int newchansess(struct Channel *channel);
|
||||||
static void chansessionrequest(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_exitsignalstatus(const struct Channel *channel);
|
||||||
static void send_msg_chansess_exitstatus(const struct Channel * channel,
|
static void send_msg_chansess_exitstatus(const struct Channel * channel,
|
||||||
@ -74,7 +74,7 @@ const struct ChanType svrchansess = {
|
|||||||
/* required to clear environment */
|
/* required to clear environment */
|
||||||
extern char** environ;
|
extern char** environ;
|
||||||
|
|
||||||
static int sesscheckclose(struct Channel *channel) {
|
static int sesscheckclose(const struct Channel *channel) {
|
||||||
struct ChanSess *chansess = (struct ChanSess*)channel->typedata;
|
struct ChanSess *chansess = (struct ChanSess*)channel->typedata;
|
||||||
TRACE(("sesscheckclose, pid is %d", chansess->exit.exitpid))
|
TRACE(("sesscheckclose, pid is %d", chansess->exit.exitpid))
|
||||||
return chansess->exit.exitpid != -1;
|
return chansess->exit.exitpid != -1;
|
||||||
|
@ -86,7 +86,7 @@ static void main_inetd() {
|
|||||||
#if DEBUG_TRACE
|
#if DEBUG_TRACE
|
||||||
if (debug_trace) {
|
if (debug_trace) {
|
||||||
/* -v output goes to stderr which would get sent over the inetd network socket */
|
/* -v output goes to stderr which would get sent over the inetd network socket */
|
||||||
dropbear_exit(LOG_ERR, "Dropbear inetd mode is incompatible with debug -v");
|
dropbear_exit("Dropbear inetd mode is incompatible with debug -v");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user