diff options
-rw-r--r-- | plugins/wimaxasncp/wimaxasncp_dict.l | 18 | ||||
-rw-r--r-- | plugins/wimaxmacphy/packet-wimaxmacphy.c | 8 |
2 files changed, 12 insertions, 14 deletions
diff --git a/plugins/wimaxasncp/wimaxasncp_dict.l b/plugins/wimaxasncp/wimaxasncp_dict.l index addd27b2b0..7afbdfe5c9 100644 --- a/plugins/wimaxasncp/wimaxasncp_dict.l +++ b/plugins/wimaxasncp/wimaxasncp_dict.l @@ -702,23 +702,23 @@ void wimaxasncp_dict_free(wimaxasncp_dict_t *d) { } void wimaxasncp_dict_print(FILE *fh, wimaxasncp_dict_t *d) { - wimaxasncp_dict_tlv_t *tlv; + wimaxasncp_dict_tlv_t *tlvp; fprintf(fh,"\n"); - for (tlv = d->tlvs; tlv; tlv = tlv->next) { + for (tlvp = d->tlvs; tlvp; tlvp = tlvp->next) { wimaxasncp_dict_enum_t *e; fprintf(fh,"TLV: %s[%u] %s[%d] %s (since %u)\n", - tlv->name ? tlv->name : "-", - tlv->type, - val_to_str(tlv->decoder, + tlvp->name ? tlvp->name : "-", + tlvp->type, + val_to_str(tlvp->decoder, wimaxasncp_decode_type_vals, "Unknown"), - tlv->decoder, - tlv->description ? tlv->description : "", - tlv->since); + tlvp->decoder, + tlvp->description ? tlvp->description : "", + tlvp->since); - for (e = tlv->enums; e; e = e->next) { + for (e = tlvp->enums; e; e = e->next) { fprintf(fh,"\tEnum: %s[%u]\n", e->name ? e->name : "-", e->code); diff --git a/plugins/wimaxmacphy/packet-wimaxmacphy.c b/plugins/wimaxmacphy/packet-wimaxmacphy.c index dc10de2228..f063b120e4 100644 --- a/plugins/wimaxmacphy/packet-wimaxmacphy.c +++ b/plugins/wimaxmacphy/packet-wimaxmacphy.c @@ -1240,9 +1240,8 @@ static guint dissect_wimaxmacphy_dl_burst_descriptor(tvbuff_t *tvb, guint offset /* sub-burst descriptors */ for (sub_burst = 0; sub_burst < sub_burst_descriptor_count; ++sub_burst) { - proto_item *item; proto_tree *sub_burst_descriptor_tree; - guint sub_burst_descriptor_length; + guint sub_burst_descriptor_length; item = proto_tree_add_text(tree, tvb, offset, 1, "Sub-Burst Descriptor %u", sub_burst); sub_burst_descriptor_tree = proto_item_add_subtree(item, ett_wimaxmacphy_dl_sub_burst_descriptor); @@ -1349,9 +1348,8 @@ static guint dissect_wimaxmacphy_dl_zone_descriptor(tvbuff_t *tvb, guint offset, /* burst descriptors */ for (burst = 0; burst < burst_descriptor_count; ++burst) { - proto_item *item; proto_tree *burst_descriptor_tree; - guint burst_descriptor_length; + guint burst_descriptor_length; /* note: we'll adjust the length later */ item = proto_tree_add_text(tree, tvb, offset, 1, "Burst Descriptor %u", burst); @@ -1890,7 +1888,7 @@ static guint dissect_wimaxmacphy_ul_burst_descriptor(tvbuff_t *tvb, guint offset for (sub_burst = 0; sub_burst < sub_burst_descriptor_count; ++sub_burst) { proto_tree *sub_burst_descriptor_tree; - guint sub_burst_descriptor_length; + guint sub_burst_descriptor_length; item = proto_tree_add_text(tree, tvb, offset, 1, "Sub-Burst Descriptor %u", sub_burst); sub_burst_descriptor_tree = proto_item_add_subtree(item, ett_wimaxmacphy_ul_sub_burst_descriptor); |