telnet: simplify previous change by moving the notkbd check into consctlcmd()
This commit is contained in:
parent
5c000bbe63
commit
f6887b0a3c
1 changed files with 1 additions and 5 deletions
|
@ -314,7 +314,7 @@ fromnet(int net)
|
||||||
void
|
void
|
||||||
consctlcmd(char *s)
|
consctlcmd(char *s)
|
||||||
{
|
{
|
||||||
if(srv != nil)
|
if(srv != nil || notkbd)
|
||||||
return;
|
return;
|
||||||
if(debug)
|
if(debug)
|
||||||
fprint(2, "consctl: %s\n", s);
|
fprint(2, "consctl: %s\n", s);
|
||||||
|
@ -333,8 +333,6 @@ consctlcmd(char *s)
|
||||||
void
|
void
|
||||||
rawon(void)
|
rawon(void)
|
||||||
{
|
{
|
||||||
if(notkbd)
|
|
||||||
return;
|
|
||||||
consctlcmd("rawon");
|
consctlcmd("rawon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -344,8 +342,6 @@ rawon(void)
|
||||||
void
|
void
|
||||||
rawoff(void)
|
rawoff(void)
|
||||||
{
|
{
|
||||||
if(notkbd)
|
|
||||||
return;
|
|
||||||
consctlcmd("rawoff");
|
consctlcmd("rawoff");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue