aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/gryphon
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2012-07-27 07:23:01 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2012-07-27 07:23:01 +0000
commit1694e725606581888ebe7a545e8e35df1ef986e5 (patch)
tree476e92dc72314ce25b1cb298608e92f0bb380b18 /plugins/gryphon
parentd1217c0c1e00445aa2ccf40c95e1662d94259b4b (diff)
Fix two "set but unused variable" warnings turning errors:
- Comment out hdrbits, it's retrieved but not used (slightly different approach to overwritten patch) - Change two instances of pt to tree as this *may* have been the intention git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@44061 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'plugins/gryphon')
-rw-r--r--plugins/gryphon/packet-gryphon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gryphon/packet-gryphon.c b/plugins/gryphon/packet-gryphon.c
index 2612fa7da7..c3ebb17e96 100644
--- a/plugins/gryphon/packet-gryphon.c
+++ b/plugins/gryphon/packet-gryphon.c
@@ -977,10 +977,11 @@ decode_data(tvbuff_t *tvb, int offset, proto_tree *pt)
{
proto_item *item, *item1;
proto_tree *tree, *tree1;
- int hdrsize, datasize, extrasize, msgsize, padding, mode;
+ int hdrsize, datasize, extrasize, /* hdrbits, */ 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;