From 6d411a236c76b3a4b452c2cb6995778f8c43bbd9 Mon Sep 17 00:00:00 2001 From: dd Date: Mon, 4 Jun 2001 23:31:21 +0000 Subject: [PATCH] Use the l_nullioctl exported from tty_conf.c rather than rolling our own. --- sys/dev/snp/snp.c | 10 ---------- sys/kern/tty_snoop.c | 10 ---------- 2 files changed, 20 deletions(-) diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 3882b67d02cc..ca2a753f0c46 100644 --- a/sys/dev/snp/snp.c +++ b/sys/dev/snp/snp.c @@ -96,16 +96,6 @@ dsnwrite(struct tty *tp, struct uio *uio, int flag) return (error); } -/* - * XXX should there be a global version of this? - */ -static int -l_nullioctl(struct tty *tp, u_long cmd, char *data, int flags, struct proc *p) -{ - - return (ENOIOCTL); -} - static struct linesw snpdisc = { ttyopen, ttylclose, ttread, dsnwrite, l_nullioctl, ttyinput, ttstart, ttymodem }; diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c index 3882b67d02cc..ca2a753f0c46 100644 --- a/sys/kern/tty_snoop.c +++ b/sys/kern/tty_snoop.c @@ -96,16 +96,6 @@ dsnwrite(struct tty *tp, struct uio *uio, int flag) return (error); } -/* - * XXX should there be a global version of this? - */ -static int -l_nullioctl(struct tty *tp, u_long cmd, char *data, int flags, struct proc *p) -{ - - return (ENOIOCTL); -} - static struct linesw snpdisc = { ttyopen, ttylclose, ttread, dsnwrite, l_nullioctl, ttyinput, ttstart, ttymodem };