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 <da...@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 &&
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to