Use the l_nullioctl exported from tty_conf.c rather than rolling our own.

This commit is contained in:
dd 2001-06-04 23:31:21 +00:00
parent 1a1e7aad6c
commit 6d411a236c
2 changed files with 0 additions and 20 deletions

View File

@ -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 };

View File

@ -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 };