pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/wireshark/patches oops - add patch which quells a ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48fe177127a1
branches:  trunk
changeset: 530709:48fe177127a1
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Jul 06 17:59:16 2007 +0000

description:
oops - add patch which quells a "array subscript is char" gcc warning

diffstat:

 net/wireshark/patches/patch-ab |  20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diffs (24 lines):

diff -r 80fc41c1bae0 -r 48fe177127a1 net/wireshark/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/wireshark/patches/patch-ab    Fri Jul 06 17:59:16 2007 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.3 2007/07/06 17:59:16 drochner Exp $
+
+--- wiretap/dbs-etherwatch.c.orig      2007-07-06 12:52:45.000000000 +0200
++++ wiretap/dbs-etherwatch.c
+@@ -624,13 +624,13 @@ parse_hex_dump(char* dump, guint8 *buf, 
+               if(isdigit((guchar)dump[pos])) {
+                       buf[count] = (dump[pos] - '0') << 4;
+               } else {
+-                      buf[count] = (toupper(dump[pos]) - 'A' + 10) << 4;
++                      buf[count] = (toupper((guchar)dump[pos]) - 'A' + 10) << 4;
+               }
+               pos++;
+               if(isdigit((guchar)dump[pos])) {
+                       buf[count] += dump[pos] - '0';
+               } else {
+-                      buf[count] += toupper(dump[pos]) - 'A' + 10;
++                      buf[count] += toupper((guchar)dump[pos]) - 'A' + 10;
+               }
+               pos++;
+               count++;



Home | Main Index | Thread Index | Old Index