summaryrefslogtreecommitdiff
path: root/sys/dev/usb/ugen.c
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2020-02-20 16:56:54 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2020-02-20 16:56:54 +0000
commitec03129c70182f2b24dd73c23b65e21de8134a24 (patch)
treeaff61980f07f1f0d612de2436534affed30f3ae6 /sys/dev/usb/ugen.c
parent00bbf32646352eb0f9b77ee2a5ab19f6b3f53f7b (diff)
Replace field f_isfd with field f_flags in struct filterops to allow
adding more filter properties without cluttering the struct. OK mpi@, anton@
Diffstat (limited to 'sys/dev/usb/ugen.c')
-rw-r--r--sys/dev/usb/ugen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index 7c2cd6d8178..40b151483c9 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ugen.c,v 1.101 2020/01/04 11:37:33 mpi Exp $ */
+/* $OpenBSD: ugen.c,v 1.102 2020/02/20 16:56:52 visa Exp $ */
/* $NetBSD: ugen.c,v 1.63 2002/11/26 18:49:48 christos Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -1329,21 +1329,21 @@ filt_ugenread_isoc(struct knote *kn, long hint)
}
const struct filterops ugenread_intr_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_ugenrdetach,
.f_event = filt_ugenread_intr,
};
const struct filterops ugenread_isoc_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_ugenrdetach,
.f_event = filt_ugenread_isoc,
};
const struct filterops ugen_seltrue_filtops = {
- .f_isfd = 1,
+ .f_flags = FILTEROP_ISFD,
.f_attach = NULL,
.f_detach = filt_ugenrdetach,
.f_event = filt_seltrue,