From 9b568ea691734185b0a1586ffae0004fc1c786a1 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Tue, 19 Jan 2010 00:37:39 +0000 Subject: Fix gcc -Wshadow warnings svn path=/trunk/; revision=31561 --- epan/dissectors/packet-packetbb.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'epan/dissectors/packet-packetbb.c') diff --git a/epan/dissectors/packet-packetbb.c b/epan/dissectors/packet-packetbb.c index 9c196c70fc..3db2400d49 100644 --- a/epan/dissectors/packet-packetbb.c +++ b/epan/dissectors/packet-packetbb.c @@ -300,7 +300,7 @@ static int dissect_pbb_tlvblock(tvbuff_t *tvb, proto_tree *tree, guint offset, static int dissect_pbb_addressblock(tvbuff_t *tvb, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { - guint8 address[MAX_ADDR_SIZE]; + guint8 addr[MAX_ADDR_SIZE]; guint8 numAddr; guint8 address_flags; @@ -326,7 +326,7 @@ static int dissect_pbb_addressblock(tvbuff_t *tvb, proto_tree *tree, guint offse DISSECTOR_ASSERT(addressSize <= MAX_ADDR_SIZE); - memset(address, 0, addressSize); + memset(addr, 0, addressSize); block_length = 2; block_index = offset; @@ -355,7 +355,7 @@ static int dissect_pbb_addressblock(tvbuff_t *tvb, proto_tree *tree, guint offse tvb_get_ptr(tvb, offset, maxoffset - offset), "Not enough octets for addressblock head"); return tvb_reported_length(tvb); } - tvb_memcpy(tvb, address, offset, head_length); + tvb_memcpy(tvb, addr, offset, head_length); midSize -= head_length; block_length += (head_length+1); @@ -398,7 +398,7 @@ static int dissect_pbb_addressblock(tvbuff_t *tvb, proto_tree *tree, guint offse tvb_get_ptr(tvb, offset, maxoffset - offset), "Not enough octets for addressblock tail"); return tvb_reported_length(tvb); } - tvb_memcpy(tvb, &address[addressSize - tail_length], offset, tail_length); + tvb_memcpy(tvb, &addr[addressSize - tail_length], offset, tail_length); midSize -= tail_length; block_length += (tail_length+1); @@ -456,10 +456,10 @@ static int dissect_pbb_addressblock(tvbuff_t *tvb, proto_tree *tree, guint offse proto_tree_add_item(addr_tree, hf_packetbb_addr_head, tvb, tail_index, 1, FALSE); } for (i=0; i