diff options
author | drochner <drochner@pkgsrc.org> | 2007-07-06 17:59:16 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2007-07-06 17:59:16 +0000 |
commit | 420de96d3f0d4c8aa43c47b1d60299aa4c7c62cb (patch) | |
tree | 6e95ece9fd11d390cc86d38b4343667bfb82b380 /net | |
parent | d80dec9822c7db3a1a3a71494e437f1802b33d12 (diff) | |
download | pkgsrc-420de96d3f0d4c8aa43c47b1d60299aa4c7c62cb.tar.gz |
oops - add patch which quells a "array subscript is char" gcc warning
Diffstat (limited to 'net')
-rw-r--r-- | net/wireshark/patches/patch-ab | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wireshark/patches/patch-ab b/net/wireshark/patches/patch-ab new file mode 100644 index 00000000000..71ccf804a95 --- /dev/null +++ b/net/wireshark/patches/patch-ab @@ -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++; |