diff options
| author | drochner <drochner@NetBSD.org> | 2006-02-24 23:41:50 +0000 |
|---|---|---|
| committer | drochner <drochner@NetBSD.org> | 2006-02-24 23:41:50 +0000 |
| commit | ce0e370e9a97d56f33c85ffcd78bb93c2d032df8 (patch) | |
| tree | ef5fb88c2e49bdf0ab26cc76dfd51e5f01b3f04c /lib/libpcap/optimize.c | |
| parent | 9aa1f72d951ae138875f58b820040c3db026b69c (diff) | |
use unsigned ints in filter, to avoid possible portability problems
with bit shifts,
this is part of PR lib/16518 by yamt
(the other concerns in that PR should be solved)
Diffstat (limited to 'lib/libpcap/optimize.c')
| -rw-r--r-- | lib/libpcap/optimize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/optimize.c b/lib/libpcap/optimize.c index 068d3df801b..f84c8a860b5 100644 --- a/lib/libpcap/optimize.c +++ b/lib/libpcap/optimize.c @@ -1,4 +1,4 @@ -/* $NetBSD: optimize.c,v 1.16 2004/09/27 23:02:53 dyoung Exp $ */ +/* $NetBSD: optimize.c,v 1.17 2006/02/24 23:41:50 drochner Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996 @@ -28,7 +28,7 @@ static const char rcsid[] = "@(#) Header: /tcpdump/master/libpcap/optimize.c,v 1.76.2.3 2003/12/22 00:26:36 guy Exp (LBL)"; #else -__RCSID("$NetBSD: optimize.c,v 1.16 2004/09/27 23:02:53 dyoung Exp $"); +__RCSID("$NetBSD: optimize.c,v 1.17 2006/02/24 23:41:50 drochner Exp $"); #endif #endif @@ -587,7 +587,7 @@ fold_op(s, v0, v1) struct stmt *s; int v0, v1; { - bpf_int32 a, b; + bpf_u_int32 a, b; a = vmap[v0].const_val; b = vmap[v1].const_val; |
