summaryrefslogtreecommitdiffstats
path: root/sys/i386/acpica
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/i386/acpica
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/i386/acpica')
-rw-r--r--sys/i386/acpica/acpi_machdep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/i386/acpica/acpi_machdep.c b/sys/i386/acpica/acpi_machdep.c
index e26cce9..a0ef60f 100644
--- a/sys/i386/acpica/acpi_machdep.c
+++ b/sys/i386/acpica/acpi_machdep.c
@@ -80,8 +80,11 @@ static d_poll_t apmpoll;
static d_kqfilter_t apmkqfilter;
static void apmreadfiltdetach(struct knote *kn);
static int apmreadfilt(struct knote *kn, long hint);
-static struct filterops apm_readfiltops =
- { 1, NULL, apmreadfiltdetach, apmreadfilt };
+static struct filterops apm_readfiltops = {
+ .f_isfd = 1,
+ .f_detach = apmreadfiltdetach,
+ .f_event = apmreadfilt,
+};
static struct cdevsw apm_cdevsw = {
.d_version = D_VERSION,
OpenPOWER on IntegriCloud