From b67232b68cdcbb54dc3a2311609828aced7ecc25 Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 3 Mar 2003 16:24:47 +0000 Subject: Make nokqfilter() return the correct return value. Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers. --- sys/pc98/cbus/sio.c | 2 +- sys/pc98/pc98/sio.c | 2 +- sys/pc98/pc98/syscons.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/pc98') diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index 3ec2bee..1dc212b 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -415,7 +415,7 @@ static struct cdevsw sio_cdevsw = { .d_poll = ttypoll, .d_name = sio_driver_name, .d_maj = CDEV_MAJOR, - .d_flags = D_TTY | D_KQFILTER, + .d_flags = D_TTY, .d_kqfilter = ttykqfilter, }; diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c index 3ec2bee..1dc212b 100644 --- a/sys/pc98/pc98/sio.c +++ b/sys/pc98/pc98/sio.c @@ -415,7 +415,7 @@ static struct cdevsw sio_cdevsw = { .d_poll = ttypoll, .d_name = sio_driver_name, .d_maj = CDEV_MAJOR, - .d_flags = D_TTY | D_KQFILTER, + .d_flags = D_TTY, .d_kqfilter = ttykqfilter, }; diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index 7220f70..dcd9048 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -221,7 +221,7 @@ static struct cdevsw sc_cdevsw = { .d_mmap = scmmap, .d_name = "sc", .d_maj = CDEV_MAJOR, - .d_flags = D_TTY | D_KQFILTER, + .d_flags = D_TTY, .d_kqfilter = ttykqfilter }; -- cgit v1.1