summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
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/kern/vfs_aio.c
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/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 3f7596b..088e4f6 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -372,10 +372,18 @@ static int filt_lio(struct knote *kn, long hint);
static uma_zone_t kaio_zone, aiop_zone, aiocb_zone, aiol_zone, aiolio_zone;
/* kqueue filters for aio */
-static struct filterops aio_filtops =
- { 0, filt_aioattach, filt_aiodetach, filt_aio };
-static struct filterops lio_filtops =
- { 0, filt_lioattach, filt_liodetach, filt_lio };
+static struct filterops aio_filtops = {
+ .f_isfd = 0,
+ .f_attach = filt_aioattach,
+ .f_detach = filt_aiodetach,
+ .f_event = filt_aio,
+};
+static struct filterops lio_filtops = {
+ .f_isfd = 0,
+ .f_attach = filt_lioattach,
+ .f_detach = filt_liodetach,
+ .f_event = filt_lio
+};
static eventhandler_tag exit_tag, exec_tag;
OpenPOWER on IntegriCloud