aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index a14f71425b2a..6990b8ff94fe 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -635,10 +635,16 @@ tty_kqops_write_event(struct knote *kn, long hint)
}
}
-static struct filterops tty_kqops_read =
- { 1, NULL, tty_kqops_read_detach, tty_kqops_read_event };
-static struct filterops tty_kqops_write =
- { 1, NULL, tty_kqops_write_detach, tty_kqops_write_event };
+static struct filterops tty_kqops_read = {
+ .f_isfd = 1,
+ .f_detach = tty_kqops_read_detach,
+ .f_event = tty_kqops_read_event,
+};
+static struct filterops tty_kqops_write = {
+ .f_isfd = 1,
+ .f_detach = tty_kqops_write_detach,
+ .f_event = tty_kqops_write_event,
+};
static int
ttydev_kqfilter(struct cdev *dev, struct knote *kn)