From: Mike Karels Date: Sun, 21 Apr 1991 07:12:09 +0000 (-0800) Subject: rm user.h, reg.h; move ttspeedtab back to tty.c for drivers X-Git-Tag: BSD-4_4-Snapshot-Development~11566 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/a81923ba2d36c49a0fe7a812604875879cfde0f2 rm user.h, reg.h; move ttspeedtab back to tty.c for drivers SCCS-vsn: sys/kern/tty_compat.c 7.9 --- diff --git a/usr/src/sys/kern/tty_compat.c b/usr/src/sys/kern/tty_compat.c index 96009f3c9c..34d61d97ce 100644 --- a/usr/src/sys/kern/tty_compat.c +++ b/usr/src/sys/kern/tty_compat.c @@ -3,7 +3,7 @@ * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * - * @(#)tty_compat.c 7.8 (Berkeley) %G% + * @(#)tty_compat.c 7.9 (Berkeley) %G% */ /* @@ -13,7 +13,6 @@ #include "param.h" #include "systm.h" -#include "user.h" #include "ioctl.h" #include "tty.h" #include "termios.h" @@ -21,12 +20,9 @@ #include "file.h" #include "conf.h" #include "dkstat.h" -#include "uio.h" #include "kernel.h" #include "syslog.h" -#include "machine/reg.h" - int ttydebug = 0; static struct speedtab compatspeeds[] = { @@ -53,16 +49,6 @@ static int compatspcodes[16] = { 1800, 2400, 4800, 9600, 19200, 38400, }; -ttspeedtab(speed, table) - register struct speedtab *table; -{ - - for ( ; table->sp_speed != -1; table++) - if (table->sp_speed == speed) - return (table->sp_code); - return (-1); -} - /*ARGSUSED*/ ttcompat(tp, com, data, flag) register struct tty *tp;