Module Name: src
Committed By: enami
Date: Sat Feb 19 08:46:41 UTC 2011
Modified Files:
src/sys/net: bpf_filter.c
Log Message:
Fix userland build.
To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/net/bpf_filter.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/bpf_filter.c
diff -u src/sys/net/bpf_filter.c:1.44 src/sys/net/bpf_filter.c:1.45
--- src/sys/net/bpf_filter.c:1.44 Sat Feb 19 04:10:47 2011
+++ src/sys/net/bpf_filter.c Sat Feb 19 08:46:41 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf_filter.c,v 1.44 2011/02/19 04:10:47 christos Exp $ */
+/* $NetBSD: bpf_filter.c,v 1.45 2011/02/19 08:46:41 enami Exp $ */
/*-
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf_filter.c,v 1.44 2011/02/19 04:10:47 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf_filter.c,v 1.45 2011/02/19 08:46:41 enami Exp $");
#if 0
#if !(defined(lint) || defined(KERNEL))
@@ -467,9 +467,10 @@
int
bpf_validate(const struct bpf_insn *f, int signed_len)
{
- u_int i, from, len, ok = 0, size;
+ u_int i, from, len, ok = 0;
const struct bpf_insn *p;
#if defined(KERNEL) || defined(_KERNEL)
+ u_int size;
uint16_t *mem, invalid;
#endif