diff options
author | Visa Hankala <visa@cvs.openbsd.org> | 2020-02-20 16:56:54 +0000 |
---|---|---|
committer | Visa Hankala <visa@cvs.openbsd.org> | 2020-02-20 16:56:54 +0000 |
commit | ec03129c70182f2b24dd73c23b65e21de8134a24 (patch) | |
tree | aff61980f07f1f0d612de2436534affed30f3ae6 /sys/dev/midi.c | |
parent | 00bbf32646352eb0f9b77ee2a5ab19f6b3f53f7b (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/midi.c')
-rw-r--r-- | sys/dev/midi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c index 7a96e87ccf5..bea0a601db1 100644 --- a/sys/dev/midi.c +++ b/sys/dev/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.45 2019/12/31 13:48:31 visa Exp $ */ +/* $OpenBSD: midi.c,v 1.46 2020/02/20 16:56:52 visa Exp $ */ /* * Copyright (c) 2003, 2004 Alexandre Ratchov @@ -67,7 +67,7 @@ void filt_midiwdetach(struct knote *); int filt_midiwrite(struct knote *, long); const struct filterops midiwrite_filtops = { - .f_isfd = 1, + .f_flags = FILTEROP_ISFD, .f_attach = NULL, .f_detach = filt_midiwdetach, .f_event = filt_midiwrite, @@ -77,7 +77,7 @@ void filt_midirdetach(struct knote *); int filt_midiread(struct knote *, long); const struct filterops midiread_filtops = { - .f_isfd = 1, + .f_flags = FILTEROP_ISFD, .f_attach = NULL, .f_detach = filt_midirdetach, .f_event = filt_midiread, |