Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net delint.
details: https://anonhg.NetBSD.org/src/rev/e44af273c48f
branches: trunk
changeset: 762334:e44af273c48f
user: christos <christos%NetBSD.org@localhost>
date: Sat Feb 19 17:21:48 2011 +0000
description:
delint.
diffstat:
sys/net/bpf_filter.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (46 lines):
diff -r 65ca3dad8ced -r e44af273c48f sys/net/bpf_filter.c
--- a/sys/net/bpf_filter.c Sat Feb 19 16:26:34 2011 +0000
+++ b/sys/net/bpf_filter.c Sat Feb 19 17:21:48 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf_filter.c,v 1.45 2011/02/19 08:46:41 enami Exp $ */
+/* $NetBSD: bpf_filter.c,v 1.46 2011/02/19 17:21:48 christos 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.45 2011/02/19 08:46:41 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf_filter.c,v 1.46 2011/02/19 17:21:48 christos Exp $");
#if 0
#if !(defined(lint) || defined(KERNEL))
@@ -149,8 +149,7 @@
A = 0;
X = 0;
--pc;
- /* CONSTCOND */
- while (1) {
+ for (;;) {
++pc;
switch (pc->code) {
@@ -159,6 +158,7 @@
return 0;
#else
abort();
+ /*NOTREACHED*/
#endif
case BPF_RET|BPF_K:
return (u_int)pc->k;
@@ -470,8 +470,8 @@
u_int i, from, len, ok = 0;
const struct bpf_insn *p;
#if defined(KERNEL) || defined(_KERNEL)
- u_int size;
uint16_t *mem, invalid;
+ size_t size;
#endif
len = (u_int)signed_len;
Home |
Main Index |
Thread Index |
Old Index