Date: Fri, 6 Apr 2012 13:34:19 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r233946 - head/sys/net Message-ID: <201204061334.q36DYJOI010804@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: melifaro Date: Fri Apr 6 13:34:19 2012 New Revision: 233946 URL: http://svn.freebsd.org/changeset/base/233946 Log: Fix build broken by r233938. Pointed by: David Wolfskill <david@catwhisker.org> Approved by: kib (mentor) Pointy hat to: melifaro Modified: head/sys/net/bpf.c Modified: head/sys/net/bpf.c ============================================================================== --- head/sys/net/bpf.c Fri Apr 6 13:06:01 2012 (r233945) +++ head/sys/net/bpf.c Fri Apr 6 13:34:19 2012 (r233946) @@ -1595,10 +1595,10 @@ bpf_setf(struct bpf_d *d, struct bpf_pro #ifdef BPF_JITTER bpf_jit_filter *ofunc; #endif + int need_upgrade; #ifdef COMPAT_FREEBSD32 struct bpf_program32 *fp32; struct bpf_program fp_swab; - int need_upgrade = 0; if (cmd == BIOCSETWF32 || cmd == BIOCSETF32 || cmd == BIOCSETFNR32) { fp32 = (struct bpf_program32 *)fp; @@ -1655,6 +1655,7 @@ bpf_setf(struct bpf_d *d, struct bpf_pro if (flen > bpf_maxinsns) return (EINVAL); + need_upgrade = 0; size = flen * sizeof(*fp->bf_insns); fcode = (struct bpf_insn *)malloc(size, M_BPF, M_WAITOK); if (copyin((caddr_t)fp->bf_insns, (caddr_t)fcode, size) == 0 &&
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204061334.q36DYJOI010804>