diff options
author | phk <phk@FreeBSD.org> | 1995-12-14 08:32:45 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-14 08:32:45 +0000 |
commit | 63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (patch) | |
tree | 17b584943b186d479fdf3906ec2bef1ea2ca47bf /sys/kern/tty_compat.c | |
parent | 30e263dcabc35e19f5e060d92f09d212e9b56668 (diff) | |
download | FreeBSD-src-63ec2c0ae9b44c5394bae5d6ee7fea5be9659585.zip FreeBSD-src-63ec2c0ae9b44c5394bae5d6ee7fea5be9659585.tar.gz |
A Major staticize sweep. Generates a couple of warnings that I'll deal
with later.
A number of unused vars removed.
A number of unused procs removed or #ifdefed.
Diffstat (limited to 'sys/kern/tty_compat.c')
-rw-r--r-- | sys/kern/tty_compat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/tty_compat.c b/sys/kern/tty_compat.c index f327ce2..e88f230 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.17 1995/08/02 12:53:14 ache Exp $ + * $Id: tty_compat.c,v 1.18 1995/11/18 11:07:00 bde Exp $ */ /* @@ -48,6 +48,7 @@ #include <sys/file.h> #include <sys/conf.h> #include <sys/kernel.h> +#include <sys/sysctl.h> #include <sys/syslog.h> static int ttcompatgetflags __P((struct tty *tp)); @@ -55,7 +56,8 @@ 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; +static int ttydebug = 0; +SYSCTL_INT(_debug, OID_AUTO, ttydebug, CTLFLAG_RW, &ttydebug, 0, ""); static struct speedtab compatspeeds[] = { #define MAX_SPEED 17 |