summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2012-11-29 16:22:54 +0000
committerBill Meier <wmeier@newsguy.com>2012-11-29 16:22:54 +0000
commit0a94d247713a88799bd5f0c6a723e472b2a90ed6 (patch)
tree18e667421f691fee00bfe02ad2d0f55c860f4536
parent79d3e696a8c296d0754aa5c552b43dcc64e2eb82 (diff)
downloadwireshark-0a94d247713a88799bd5f0c6a723e472b2a90ed6.tar.gz
Fix several [-Wshadow] warnings.
svn path=/trunk/; revision=46287
-rw-r--r--plugins/wimaxasncp/wimaxasncp_dict.l18
-rw-r--r--plugins/wimaxmacphy/packet-wimaxmacphy.c8
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);