summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_snoop.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-14 08:32:45 +0000
committerphk <phk@FreeBSD.org>1995-12-14 08:32:45 +0000
commit63ec2c0ae9b44c5394bae5d6ee7fea5be9659585 (patch)
tree17b584943b186d479fdf3906ec2bef1ea2ca47bf /sys/kern/tty_snoop.c
parent30e263dcabc35e19f5e060d92f09d212e9b56668 (diff)
downloadFreeBSD-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_snoop.c')
-rw-r--r--sys/kern/tty_snoop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c
index 36d08d7..ed9ae26 100644
--- a/sys/kern/tty_snoop.c
+++ b/sys/kern/tty_snoop.c
@@ -22,9 +22,7 @@
#include <sys/ioctl.h>
#include <sys/ioctl_compat.h> /* Oooh..We need O/NTTYDISC */
#include <sys/proc.h>
-#define TTYDEFCHARS
#include <sys/tty.h>
-#undef TTYDEFCHARS
#include <sys/file.h>
#include <sys/conf.h>
#include <sys/uio.h>
@@ -57,6 +55,7 @@ static struct cdevsw snp_cdevsw =
static struct snoop snoopsw[NSNP];
static struct tty *devtotty __P((dev_t dev));
+static int snp_detach __P((struct snoop *snp));
static struct tty *
devtotty (dev)
@@ -320,7 +319,7 @@ snpopen(dev, flag, mode, p)
}
-int
+static int
snp_detach(snp)
struct snoop *snp;
{
OpenPOWER on IntegriCloud