summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.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/net/bpf.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/net/bpf.c')
-rw-r--r--sys/net/bpf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 9656a6e..2b62f03 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -148,8 +148,11 @@ static struct cdevsw bpf_cdevsw = {
.d_kqfilter = bpfkqfilter,
};
-static struct filterops bpfread_filtops =
- { 1, NULL, filt_bpfdetach, filt_bpfread };
+static struct filterops bpfread_filtops = {
+ .f_isfd = 1,
+ .f_detach = filt_bpfdetach,
+ .f_event = filt_bpfread,
+};
/*
* Wrapper functions for various buffering methods. If the set of buffer
OpenPOWER on IntegriCloud