summaryrefslogtreecommitdiff
path: root/plugins/gryphon/packet-gryphon.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-07-27 07:23:01 +0000
committerJörg Mayer <jmayer@loplof.de>2012-07-27 07:23:01 +0000
commit3bfda44ae01b5f16bfd425afe19261e51f4d78b6 (patch)
tree476e92dc72314ce25b1cb298608e92f0bb380b18 /plugins/gryphon/packet-gryphon.c
parent910a481c22155c13285c3e891dc5758f4b6ea8e4 (diff)
downloadwireshark-3bfda44ae01b5f16bfd425afe19261e51f4d78b6.tar.gz
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 svn path=/trunk/; revision=44061
Diffstat (limited to 'plugins/gryphon/packet-gryphon.c')
-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;