diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-11-18 11:07:00 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-11-18 11:07:00 +0000 |
commit | 3b9a76f03c6e967e1734d46fb7906b8e5c22c1ac (patch) | |
tree | 6607a75597a02993b7c79354faced24158ff41d2 /sys/kern/tty_compat.c | |
parent | 7bcb7905fd197edeb646975b67fcba87cbb09a6d (diff) | |
download | src-3b9a76f03c6e967e1734d46fb7906b8e5c22c1ac.tar.gz src-3b9a76f03c6e967e1734d46fb7906b8e5c22c1ac.zip |
Improved formatting.
Added a comment about possibly better handling of INPCK.
Added a prototype.
Notes
Notes:
svn path=/head/; revision=12370
Diffstat (limited to 'sys/kern/tty_compat.c')
-rw-r--r-- | sys/kern/tty_compat.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/tty_compat.c b/sys/kern/tty_compat.c index fabc96b684cf..f327ce2f377b 100644 --- a/sys/kern/tty_compat.c +++ b/sys/kern/tty_compat.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_compat.c 8.1 (Berkeley) 6/10/93 - * $Id: tty_compat.c,v 1.16 1995/08/02 12:03:12 ache Exp $ + * $Id: tty_compat.c,v 1.17 1995/08/02 12:53:14 ache Exp $ */ /* @@ -53,6 +53,7 @@ static int ttcompatgetflags __P((struct tty *tp)); static void ttcompatsetflags __P((struct tty *tp, struct termios *t)); static void ttcompatsetlflags __P((struct tty *tp, struct termios *t)); +static int ttcompatspeedtab __P((int speed, struct speedtab *table)); int ttydebug = 0; @@ -80,11 +81,11 @@ static struct speedtab compatspeeds[] = { }; static int compatspcodes[] = { 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, - 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200 + 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200, }; -static -int ttcompatspeedtab(speed, table) +static int +ttcompatspeedtab(speed, table) int speed; register struct speedtab *table; { @@ -96,7 +97,8 @@ int ttcompatspeedtab(speed, table) return (1); /* 50, min and not hangup */ } -int ttsetcompat(tp, com, data, term) +int +ttsetcompat(tp, com, data, term) register struct tty *tp; int *com; caddr_t data; @@ -386,6 +388,7 @@ ttcompatsetflags(tp, t) iflag |= ISTRIP; oflag |= OPOST; } + /* XXX don't set INPCK if RAW or PASS8? */ if ((flags&(EVENP|ODDP)) == EVENP) { iflag |= INPCK; cflag &= ~PARODD; |