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.
This commit is contained in:
Christian S.J. Peron 2007-06-17 21:51:43 +00:00
parent d933824786
commit d83e603ac7

View File

@ -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)