diff options
author | csjp <csjp@FreeBSD.org> | 2007-06-17 21:51:43 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2007-06-17 21:51:43 +0000 |
commit | 6711a4448272405991d7cf2b868158b0bacb8a9a (patch) | |
tree | f634a6a2011355f48fec0fde537f699ee698b858 /sys/net/bpf.c | |
parent | c7a9176e2cb880ef422f7d6d68815b59b2de4537 (diff) | |
download | FreeBSD-src-6711a4448272405991d7cf2b868158b0bacb8a9a.zip FreeBSD-src-6711a4448272405991d7cf2b868158b0bacb8a9a.tar.gz |
Silence some gcc 4 warnings. It is expected that the bpf_movein() routine
will intialize the the header length and re-initialize the mbuf pointer
to reference the mbuf that is allocated after moving user supplied packet
data in.
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r-- | sys/net/bpf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 506d15f..0443d13 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -613,6 +613,8 @@ bpfwrite(struct cdev *dev, struct uio *uio, int ioflag) return (0); bzero(&dst, sizeof(dst)); + m = NULL; + hlen = 0; error = bpf_movein(uio, (int)d->bd_bif->bif_dlt, ifp->if_mtu, &m, &dst, &hlen, d->bd_wfilter); if (error) |