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/kern/tty_pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/tty_pty.c') diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 1561eb1..d3ba47a 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -85,7 +85,7 @@ static struct cdevsw pts_cdevsw = { .d_poll = ttypoll, .d_name = "pts", .d_maj = CDEV_MAJOR_S, - .d_flags = D_TTY | D_KQFILTER, + .d_flags = D_TTY, .d_kqfilter = ttykqfilter, }; @@ -99,7 +99,7 @@ static struct cdevsw ptc_cdevsw = { .d_poll = ptcpoll, .d_name = "ptc", .d_maj = CDEV_MAJOR_C, - .d_flags = D_TTY | D_KQFILTER, + .d_flags = D_TTY, .d_kqfilter = ttykqfilter, }; -- cgit v1.1