diff options
author | Matt Johnston <matt@ucc.asn.au> | 2016-03-16 22:53:27 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2016-03-16 22:53:27 +0800 |
commit | c830d30553abc3710c3d5eb18964cd96fc37c902 (patch) | |
tree | 393f384cd748140a3fb55f41a7009baca51a062e /cli-chansession.c | |
parent | 3e7672edca09cb72ca8be481b5a6d5fb30b79149 (diff) | |
parent | 0650182289344e0d83b20c0cea1024a2306d2072 (diff) |
merge
Diffstat (limited to 'cli-chansession.c')
-rw-r--r-- | cli-chansession.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index 5e00149..0f92e8a 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -43,7 +43,7 @@ static void send_chansess_shell_req(struct Channel *channel); static void cli_escape_handler(struct Channel *channel, unsigned char* buf, int *len); static int cli_init_netcat(struct Channel *channel); -static void cli_tty_setup(); +static void cli_tty_setup(void); const struct ChanType clichansess = { 0, /* sepfds */ @@ -438,7 +438,6 @@ do_escape(unsigned char c) { case '.': dropbear_exit("Terminated"); return 1; - break; case 0x1a: /* ctrl-z */ cli_tty_cleanup(); @@ -447,9 +446,9 @@ do_escape(unsigned char c) { cli_tty_setup(); cli_ses.winchange = 1; return 1; - break; + default: + return 0; } - return 0; } static |