pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libpcap use unsigned ints in filter, to avoid poss...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/70ad9e9fdc53
branches:  trunk
changeset: 508760:70ad9e9fdc53
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Feb 24 23:39:44 2006 +0000

description:
use unsigned ints in filter, to avoid possible portability problems
with bit shifts,
this is part of PR lib/16518 by yamt
(which is filed against base NetBSD sources, but anyway)

diffstat:

 net/libpcap/distinfo         |   3 ++-
 net/libpcap/patches/patch-ae |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 68f7e3199f49 -r 70ad9e9fdc53 net/libpcap/distinfo
--- a/net/libpcap/distinfo      Fri Feb 24 23:08:33 2006 +0000
+++ b/net/libpcap/distinfo      Fri Feb 24 23:39:44 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2006/02/24 22:53:41 drochner Exp $
+$NetBSD: distinfo,v 1.15 2006/02/24 23:39:44 drochner Exp $
 
 SHA1 (libpcap-0.9.4.tar.gz) = 046f7624e66da51eba1ed2cb169695d1e7f31c29
 RMD160 (libpcap-0.9.4.tar.gz) = b8adee8f40256b8822e8e8b7da9a9bbd716ff6ab
@@ -6,3 +6,4 @@
 SHA1 (patch-ab) = ef8450b6f7ee050fcc40eec8ebdaa3fbb3ebdfe9
 SHA1 (patch-ac) = 26148fe8cfbd0502fc13b0381ca31c4d02204b00
 SHA1 (patch-ad) = f9d2d6401a62d216b9f0af858fb1adde2098483e
+SHA1 (patch-ae) = 5b00f64d503b44d13814e326c5f171c5a20c7eb3
diff -r 68f7e3199f49 -r 70ad9e9fdc53 net/libpcap/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libpcap/patches/patch-ae      Fri Feb 24 23:39:44 2006 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2006/02/24 23:39:44 drochner Exp $
+
+--- optimize.c.orig    2006-02-25 00:31:53.000000000 +0100
++++ optimize.c
+@@ -624,7 +624,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;



Home | Main Index | Thread Index | Old Index