diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-09-12 20:03:45 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-09-12 20:03:45 +0000 |
commit | 53eaed07bcf1ec0f1a38e0b490d95f1ee307055a (patch) | |
tree | a4c213c079a55cd47cd1026ebfbedf0f22cafea1 /sys/net | |
parent | db3ff4e5c03b76a4899555f3db282820ce0c3470 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/net/bpf.c | 7 |
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 |