diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-07-27 07:23:01 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2012-07-27 07:23:01 +0000 |
commit | 1694e725606581888ebe7a545e8e35df1ef986e5 (patch) | |
tree | 476e92dc72314ce25b1cb298608e92f0bb380b18 /plugins/gryphon | |
parent | d1217c0c1e00445aa2ccf40c95e1662d94259b4b (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.c | 3 |
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; |