summaryrefslogtreecommitdiff
path: root/plugins/irda/packet-sir.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2010-01-28 21:49:30 +0000
committerBill Meier <wmeier@newsguy.com>2010-01-28 21:49:30 +0000
commit1341fcd87eed8a937e0362eac5cd3bc4d3a1180b (patch)
treefbe6ba74b37d4f018150d24eb22bd7d82714d4e6 /plugins/irda/packet-sir.c
parent2ea1e1962f0d55e2f22c474df50f1fe609c734ca (diff)
downloadwireshark-1341fcd87eed8a937e0362eac5cd3bc4d3a1180b.tar.gz
Fix some gcc -Wshadow warnings.
svn path=/trunk/; revision=31722
Diffstat (limited to 'plugins/irda/packet-sir.c')
-rw-r--r--plugins/irda/packet-sir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/irda/packet-sir.c b/plugins/irda/packet-sir.c
index 26541d6287..54f844e906 100644
--- a/plugins/irda/packet-sir.c
+++ b/plugins/irda/packet-sir.c
@@ -146,9 +146,8 @@ dissect_sir(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root)
} else {
guint preamble_len = bof_offset - offset;
gint data_offset = bof_offset + 1;
- guint data_len = eof_offset - data_offset;
tvbuff_t* next_tvb = tvb_new_subset(tvb,
- data_offset, data_len, -1);
+ data_offset, eof_offset - data_offset, -1);
next_tvb = unescape_data(next_tvb, pinfo);
if (root) {
unsigned data_len = tvb_length(next_tvb) < 2 ? 0 :