aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_subr.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/vfs_subr.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/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c29
1 files changed, 21 insertions, 8 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f3ec5650956a..c40dad1f0110 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -4002,8 +4002,12 @@ static int filt_fsattach(struct knote *kn);
static void filt_fsdetach(struct knote *kn);
static int filt_fsevent(struct knote *kn, long hint);
-struct filterops fs_filtops =
- { 0, filt_fsattach, filt_fsdetach, filt_fsevent };
+struct filterops fs_filtops = {
+ .f_isfd = 0,
+ .f_attach = filt_fsattach,
+ .f_detach = filt_fsdetach,
+ .f_event = filt_fsevent
+};
static int
filt_fsattach(struct knote *kn)
@@ -4076,12 +4080,21 @@ static int filt_vfsread(struct knote *kn, long hint);
static int filt_vfswrite(struct knote *kn, long hint);
static int filt_vfsvnode(struct knote *kn, long hint);
static void filt_vfsdetach(struct knote *kn);
-static struct filterops vfsread_filtops =
- { 1, NULL, filt_vfsdetach, filt_vfsread };
-static struct filterops vfswrite_filtops =
- { 1, NULL, filt_vfsdetach, filt_vfswrite };
-static struct filterops vfsvnode_filtops =
- { 1, NULL, filt_vfsdetach, filt_vfsvnode };
+static struct filterops vfsread_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_vfsdetach,
+ .f_event = filt_vfsread
+};
+static struct filterops vfswrite_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_vfsdetach,
+ .f_event = filt_vfswrite
+};
+static struct filterops vfsvnode_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_vfsdetach,
+ .f_event = filt_vfsvnode
+};
static void
vfs_knllock(void *arg)