diff options
Diffstat (limited to 'sys/net/bpf_filter.c')
-rw-r--r-- | sys/net/bpf_filter.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c index aec0e275d0c..7042a50f702 100644 --- a/sys/net/bpf_filter.c +++ b/sys/net/bpf_filter.c @@ -1,4 +1,5 @@ -/* $NetBSD: bpf_filter.c,v 1.11 1995/04/22 13:26:39 cgd Exp $ */ +/* $OpenBSD: bpf_filter.c,v 1.3 1996/03/03 21:07:02 niklas Exp $ */ +/* $NetBSD: bpf_filter.c,v 1.12 1996/02/13 22:00:00 christos Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993 @@ -84,6 +85,9 @@ } \ } +static int m_xword __P((struct mbuf *, int, int *)); +static int m_xhalf __P((struct mbuf *, int, int *)); + static int m_xword(m, k, err) register struct mbuf *m; @@ -160,7 +164,7 @@ bpf_filter(pc, p, wirelen, buflen) u_int wirelen; register u_int buflen; { - register u_int32_t A, X; + register u_int32_t A = 0, X = 0; register int k; int32_t mem[BPF_MEMWORDS]; @@ -169,10 +173,6 @@ bpf_filter(pc, p, wirelen, buflen) * No filter means accept all. */ return (u_int)-1; -#ifdef lint - A = 0; - X = 0; -#endif --pc; while (1) { ++pc; |