diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2012-03-27 06:57:39 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2012-03-27 06:57:39 +0000 |
commit | 1fd4eaaa88949b8d183f803d1331ce907723e692 (patch) | |
tree | bfb935885bda85ed706fea43e74ca96c4d2ce637 /plugins/m2m | |
parent | caf47612028682318611b9f3c1f3adbe69cc9314 (diff) |
Removed unused pdu_length in pdu_burst_decoder to avoid a warning from clang.
svn path=/trunk/; revision=41794
Diffstat (limited to 'plugins/m2m')
-rw-r--r-- | plugins/m2m/packet-m2m.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/m2m/packet-m2m.c b/plugins/m2m/packet-m2m.c index 0ee1b98da5..26667441ad 100644 --- a/plugins/m2m/packet-m2m.c +++ b/plugins/m2m/packet-m2m.c @@ -420,7 +420,6 @@ static void pdu_burst_decoder(proto_tree *tree, tvbuff_t *tvb, gint offset, gint { fragment_data *pdu_frag; tvbuff_t *pdu_tvb = NULL; - gint pdu_length = 0; /* update the info column */ switch (frag_type) @@ -438,16 +437,14 @@ static void pdu_burst_decoder(proto_tree *tree, tvbuff_t *tvb, gint offset, gint if(frag_type == TLV_NO_FRAG) { /* not fragmented PDU */ pdu_tvb = tvb_new_subset(tvb, offset, length, length); - pdu_length = length; } else /* fragmented PDU */ { /* add the frag */ pdu_frag = fragment_add_seq(tvb, offset, pinfo, burst_number, pdu_frag_table, frag_number - 1, length, ((frag_type==TLV_LAST_FRAG)?0:1)); if(pdu_frag && frag_type == TLV_LAST_FRAG) { - pdu_length = pdu_frag->len; /* create the new tvb for defraged frame */ - pdu_tvb = tvb_new_child_real_data(tvb, pdu_frag->data, pdu_length, pdu_length); + pdu_tvb = tvb_new_child_real_data(tvb, pdu_frag->data, pdu_frag->len, pdu_frag->len); /* add the defragmented data to the data source list */ add_new_data_source(pinfo, pdu_tvb, "Reassembled WiMax PDU Frame"); } |