Fix whitespace inconsistencies in TTY code.
This commit is contained in:
parent
f0e3e0350a
commit
cd864a19a5
@ -1229,7 +1229,7 @@ tty_makedev(struct tty *tp, struct ucred *cred, const char *fmt, ...)
|
||||
|
||||
/* Slave call-out devices. */
|
||||
if (tp->t_flags & TF_INITLOCK) {
|
||||
dev = make_dev_cred(&ttyil_cdevsw,
|
||||
dev = make_dev_cred(&ttyil_cdevsw,
|
||||
TTYUNIT_CALLOUT | TTYUNIT_INIT, cred,
|
||||
UID_UUCP, GID_DIALER, 0660, "cua%s.init", name);
|
||||
dev_depends(tp->t_dev, dev);
|
||||
|
@ -109,7 +109,7 @@ thread_compare(struct thread *td, struct thread *td2)
|
||||
|
||||
/*
|
||||
* Fetch running stats, pctcpu usage, and interruptable flag.
|
||||
*/
|
||||
*/
|
||||
thread_lock(td);
|
||||
runa = TD_IS_RUNNING(td) | TD_ON_RUNQ(td);
|
||||
slpa = td->td_flags & TDF_SINTR;
|
||||
@ -173,7 +173,7 @@ proc_compare(struct proc *p1, struct proc *p2)
|
||||
PROC_LOCK(p2);
|
||||
runb = proc_sum(p2, &estb);
|
||||
PROC_UNLOCK(p2);
|
||||
|
||||
|
||||
/*
|
||||
* see if at least one of them is runnable
|
||||
*/
|
||||
|
@ -661,7 +661,6 @@ ttydisc_echo(struct tty *tp, char c, int quote)
|
||||
return ttydisc_echo_force(tp, c, quote);
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
ttydisc_reprint_char(void *d, char c, int quote)
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ struct winsize {
|
||||
#define TIOCM_SR 0020 /* secondary receive */
|
||||
#define TIOCM_CTS 0040 /* clear to send */
|
||||
#define TIOCM_DCD 0100 /* data carrier detect */
|
||||
#define TIOCM_RI 0200 /* ring indicate */
|
||||
#define TIOCM_RI 0200 /* ring indicate */
|
||||
#define TIOCM_DSR 0400 /* data set ready */
|
||||
#define TIOCM_CD TIOCM_DCD
|
||||
#define TIOCM_CAR TIOCM_DCD
|
||||
|
@ -79,9 +79,9 @@
|
||||
#define CSTART CTRL('Q')
|
||||
#define CSTOP CTRL('S')
|
||||
#define CLNEXT CTRL('V')
|
||||
#define CDISCARD CTRL('O')
|
||||
#define CWERASE CTRL('W')
|
||||
#define CREPRINT CTRL('R')
|
||||
#define CDISCARD CTRL('O')
|
||||
#define CWERASE CTRL('W')
|
||||
#define CREPRINT CTRL('R')
|
||||
#define CEOT CEOF
|
||||
/* compat */
|
||||
#define CBRK CEOL
|
||||
|
Loading…
Reference in New Issue
Block a user