diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-05 22:43:44 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2013-12-05 22:43:44 +0100 |
commit | f6887b0a3c0a18c59721ea5a006a1c31b3604591 (patch) | |
tree | c92b17b84aa90480da1ebd262f79de85244755c2 /sys/src/cmd/ip | |
parent | 5c000bbe6378de33b55080bcc8be1cfb907c2d22 (diff) |
telnet: simplify previous change by moving the notkbd check into consctlcmd()
Diffstat (limited to 'sys/src/cmd/ip')
-rw-r--r-- | sys/src/cmd/ip/telnet.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/src/cmd/ip/telnet.c b/sys/src/cmd/ip/telnet.c index e4885bf6a..3d03aaa21 100644 --- a/sys/src/cmd/ip/telnet.c +++ b/sys/src/cmd/ip/telnet.c @@ -314,7 +314,7 @@ fromnet(int net) void consctlcmd(char *s) { - if(srv != nil) + if(srv != nil || notkbd) return; if(debug) fprint(2, "consctl: %s\n", s); @@ -333,8 +333,6 @@ consctlcmd(char *s) void rawon(void) { - if(notkbd) - return; consctlcmd("rawon"); } @@ -344,8 +342,6 @@ rawon(void) void rawoff(void) { - if(notkbd) - return; consctlcmd("rawoff"); } |