aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-07-27 07:12:55 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-07-27 07:12:55 +0000
commitfc192f4c57049130b38b8e2296b6d2272a6912e0 (patch)
tree878f878ad85fbb353aa39ac76cbea5360dd8aa7e /plugins
parent9465a06fe7256f71908d5cf49bf1c482257a57e2 (diff)
Remove unused variable, use the created subtree. Found by buildbot.
svn path=/trunk/; revision=44059
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gryphon/packet-gryphon.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c
index 391d0ba8bf..2612fa7da7 100644
--- a/plugins/gryphon/packet-gryphon.c
+++ b/plugins/gryphon/packet-gryphon.c
@@ -977,11 +977,10 @@ decode_data(tvbuff_t *tvb, int offset, proto_tree *pt)
{
proto_item *item, *item1;
proto_tree *tree, *tree1;
- int hdrsize, datasize, extrasize, hdrbits, msgsize, padding, mode;
+ int hdrsize, datasize, extrasize, msgsize, padding, mode;
nstime_t timestamp;
hdrsize = tvb_get_guint8(tvb, offset+0);
- hdrbits = tvb_get_guint8(tvb, offset+1);
datasize = tvb_get_ntohs(tvb, offset+2);
extrasize = tvb_get_guint8(tvb, offset+4);
padding = 3 - (hdrsize + datasize + extrasize + 3) % 4;
@@ -1787,10 +1786,10 @@ resp_list(tvbuff_t *tvb, int offset, proto_tree *pt)
for (i = 1; i <= count; i++) {
item = proto_tree_add_text(pt, tvb, offset, 112, "Program %u", i);
tree = proto_item_add_subtree (item, ett_gryphon_pgm_list);
- proto_tree_add_item(pt, hf_gryphon_list_name, tvb, offset, 32, ENC_NA|ENC_ASCII);
+ proto_tree_add_item(tree, hf_gryphon_list_name, tvb, offset, 32, ENC_NA|ENC_ASCII);
offset += 32;
- proto_tree_add_item(pt, hf_gryphon_list_description, tvb, offset, 80, ENC_NA|ENC_ASCII);
+ proto_tree_add_item(tree, hf_gryphon_list_description, tvb, offset, 80, ENC_NA|ENC_ASCII);
offset += 80;
}
return offset;