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
This commit is contained in:
Jörg Mayer 2012-07-27 07:23:01 +00:00
parent 910a481c22
commit 3bfda44ae0
1 changed files with 2 additions and 1 deletions

View File

@ -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;