summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-09-12 20:03:45 +0000
committerrwatson <rwatson@FreeBSD.org>2009-09-12 20:03:45 +0000
commit53eaed07bcf1ec0f1a38e0b490d95f1ee307055a (patch)
treea4c213c079a55cd47cd1026ebfbedf0f22cafea1 /sys/fs
parentdb3ff4e5c03b76a4899555f3db282820ce0c3470 (diff)
downloadFreeBSD-src-53eaed07bcf1ec0f1a38e0b490d95f1ee307055a.zip
FreeBSD-src-53eaed07bcf1ec0f1a38e0b490d95f1ee307055a.tar.gz
Use C99 initialization for struct filterops.
Obtained from: Mac OS X Sponsored by: Apple Inc. MFC after: 3 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/fifofs/fifo_vnops.c21
1 files changed, 15 insertions, 6 deletions
diff --git a/sys/fs/fifofs/fifo_vnops.c b/sys/fs/fifofs/fifo_vnops.c
index 5668f75..6dea11c 100644
--- a/sys/fs/fifofs/fifo_vnops.c
+++ b/sys/fs/fifofs/fifo_vnops.c
@@ -100,12 +100,21 @@ static int filt_fifowrite(struct knote *kn, long hint);
static void filt_fifodetach_notsup(struct knote *kn);
static int filt_fifo_notsup(struct knote *kn, long hint);
-static struct filterops fiforead_filtops =
- { 1, NULL, filt_fifordetach, filt_fiforead };
-static struct filterops fifowrite_filtops =
- { 1, NULL, filt_fifowdetach, filt_fifowrite };
-static struct filterops fifo_notsup_filtops =
- { 1, NULL, filt_fifodetach_notsup, filt_fifo_notsup };
+static struct filterops fiforead_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_fifordetach,
+ .f_event = filt_fiforead,
+};
+static struct filterops fifowrite_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_fifowdetach,
+ .f_event = filt_fifowrite,
+};
+static struct filterops fifo_notsup_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_fifodetach_notsup,
+ .f_event = filt_fifo_notsup,
+};
struct vop_vector fifo_specops = {
.vop_default = &default_vnodeops,
OpenPOWER on IntegriCloud