Use the l_nullioctl exported from tty_conf.c rather than rolling our own.
This commit is contained in:
parent
1a1e7aad6c
commit
6d411a236c
@ -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 };
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user