summaryrefslogtreecommitdiff
path: root/sys/kern/spec_vnops.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-12-31 21:22:36 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-12-31 21:22:36 +0000
commit73ed0e5c02f4909688a40974d9bb8086b01f22c5 (patch)
treead16c18eb39bc329620becf40fc2564e13cf5d45 /sys/kern/spec_vnops.c
parentbef19611e76eddbba0c90d0f8cc136d3937de6d0 (diff)
Split the d_type field of cdevsw entries into d_type and d_flags for clarity.
Discussed with and ok deraadt@ millert@
Diffstat (limited to 'sys/kern/spec_vnops.c')
-rw-r--r--sys/kern/spec_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/spec_vnops.c b/sys/kern/spec_vnops.c
index abd1dfa98c8..04065b17bd7 100644
--- a/sys/kern/spec_vnops.c
+++ b/sys/kern/spec_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spec_vnops.c,v 1.30 2005/12/29 20:00:52 pedro Exp $ */
+/* $OpenBSD: spec_vnops.c,v 1.31 2005/12/31 21:22:35 miod Exp $ */
/* $NetBSD: spec_vnops.c,v 1.29 1996/04/22 01:42:38 christos Exp $ */
/*
@@ -482,7 +482,7 @@ spec_kqfilter(v)
dev_t dev;
dev = ap->a_vp->v_rdev;
- if (cdevsw[major(dev)].d_type & D_KQFILTER)
+ if (cdevsw[major(dev)].d_flags & D_KQFILTER)
return (*cdevsw[major(dev)].d_kqfilter)(dev, ap->a_kn);
return (1);
}