summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-07-04 16:52:42 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-07-04 16:52:42 +0000
commit1ae6a4b8fc76860603ec314110187211500cd17b (patch)
treeb998df5beeb32675f8b6e012091ece866b12aef0 /sys/dev
parent6c9d4597b187bccba0dc7a8a7b51a8e4d5803f38 (diff)
Nuke the useless D_KQFILTER flag and just check that d_kqfilter is
filled in. Move D_CLONE down to 0x0001 as suggested by thib. ok deraadt thib
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/cons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c
index df76b84d515..412533746ff 100644
--- a/sys/dev/cons.c
+++ b/sys/dev/cons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cons.c,v 1.22 2011/07/02 22:20:07 nicm Exp $ */
+/* $OpenBSD: cons.c,v 1.23 2011/07/04 16:52:41 nicm Exp $ */
/* $NetBSD: cons.c,v 1.30 1996/04/08 19:57:30 jonathan Exp $ */
/*
@@ -217,7 +217,7 @@ cnkqfilter(dev_t dev, struct knote *kn)
return (ENXIO);
else
dev = cn_tab->cn_dev;
- if (cdevsw[major(dev)].d_flags & D_KQFILTER)
+ if (cdevsw[major(dev)].d_kqfilter)
return ((*cdevsw[major(dev)].d_kqfilter)(dev, kn));
return (ENXIO);
}