summaryrefslogtreecommitdiffhomepage
path: root/cli-chansession.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli-chansession.c')
-rw-r--r--cli-chansession.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli-chansession.c b/cli-chansession.c
index b30fe43..ed80453 100644
--- a/cli-chansession.c
+++ b/cli-chansession.c
@@ -433,7 +433,7 @@ void cli_send_chansess_request() {
}
-// returns 1 if the character should be consumed, 0 to pass through
+/* returns 1 if the character should be consumed, 0 to pass through */
static int
do_escape(unsigned char c) {
switch (c) {
@@ -442,10 +442,10 @@ do_escape(unsigned char c) {
return 1;
break;
case 0x1a:
- // ctrl-z
+ /* ctrl-z */
cli_tty_cleanup();
kill(getpid(), SIGTSTP);
- // after continuation
+ /* after continuation */
cli_tty_setup();
cli_ses.winchange = 1;
return 1;
@@ -459,8 +459,8 @@ void cli_escape_handler(struct Channel* UNUSED(channel), unsigned char* buf, int
char c;
int skip_char = 0;
- // only handle escape characters if they are read one at a time. simplifies
- // the code and avoids nasty people putting ~. at the start of a line to paste
+ /* only handle escape characters if they are read one at a time. simplifies
+ the code and avoids nasty people putting ~. at the start of a line to paste */
if (*len != 1) {
cli_ses.last_char = 0x0;
return;