diff options
author | dd <dd@FreeBSD.org> | 2001-06-04 23:31:21 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-06-04 23:31:21 +0000 |
commit | b646de742c6b73e04ed1e88d4b5857a9357e6910 (patch) | |
tree | c2ada8c3bf89522814af045fbe2680bf1ed23620 | |
parent | c6d2a1e6f90c071acdecb05059ce1108abdb5cb8 (diff) | |
download | FreeBSD-src-b646de742c6b73e04ed1e88d4b5857a9357e6910.zip FreeBSD-src-b646de742c6b73e04ed1e88d4b5857a9357e6910.tar.gz |
Use the l_nullioctl exported from tty_conf.c rather than rolling our own.
-rw-r--r-- | sys/dev/snp/snp.c | 10 | ||||
-rw-r--r-- | sys/kern/tty_snoop.c | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/snp/snp.c b/sys/dev/snp/snp.c index 3882b67..ca2a753 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 3882b67..ca2a753 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 }; |