diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-01 23:27:36 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-01 23:27:36 +0000 |
| commit | 7a82fc7855a08275e6f8dfe26793df973c016e7a (patch) | |
| tree | 94ae4b90fc88d37d8e12465c9593ee2e457c7dad /sys/kern/tty_compat.c | |
| parent | 765d5b0d6f16f92d2c1cf15fa7dc6899323817e8 (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty_compat.c')
| -rw-r--r-- | sys/kern/tty_compat.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/kern/tty_compat.c b/sys/kern/tty_compat.c index 9b4b73129bad..628b11c8191c 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.12 1995/04/11 17:54:25 ache Exp $ + * $Id: tty_compat.c,v 1.13 1995/05/30 08:06:09 rgrimes Exp $ */ /* @@ -78,10 +78,7 @@ static struct speedtab compatspeeds[] = { { 0, 0 }, { -1, -1 }, }; -static int compatspcodes[] = { - 0, 50, 75, 110, 134, 150, 200, 300, 600, 1200, - 1800, 2400, 4800, 9600, 19200, 38400, 57600, 115200, -}; +extern int validspeed[]; /* in tty.c */ int ttsetcompat(tp, com, data, term) register struct tty *tp; @@ -98,11 +95,11 @@ int ttsetcompat(tp, com, data, term) if ((speed = sg->sg_ispeed) > MAX_SPEED || speed < 0) return(EINVAL); else - term->c_ispeed = compatspcodes[speed]; + term->c_ispeed = validspeed[speed]; if ((speed = sg->sg_ospeed) > MAX_SPEED || speed < 0) return(EINVAL); else - term->c_ospeed = compatspcodes[speed]; + term->c_ospeed = validspeed[speed]; term->c_cc[VERASE] = sg->sg_erase; term->c_cc[VKILL] = sg->sg_kill; tp->t_flags = (tp->t_flags&0xffff0000) | (sg->sg_flags&0xffff); |
