aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2009-09-12 20:03:45 +0000
committerRobert Watson <rwatson@FreeBSD.org>2009-09-12 20:03:45 +0000
commite76d823b81edf1f8bcbdbe1143d2c0030c8bc299 (patch)
treea4c213c079a55cd47cd1026ebfbedf0f22cafea1 /sys/kern/tty.c
parentf5516e3d1d2e9d306080f1045d355459b23a67b9 (diff)
downloadsrc-e76d823b81edf1f8bcbdbe1143d2c0030c8bc299.tar.gz
src-e76d823b81edf1f8bcbdbe1143d2c0030c8bc299.zip
Use C99 initialization for struct filterops.
Obtained from: Mac OS X Sponsored by: Apple Inc. MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=197134
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)