diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-01-18 21:49:47 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-01-18 21:49:47 +0000 |
commit | b5b17f5994f17cf9b313fc1d2afc5a549ef8419b (patch) | |
tree | c50b56a45e65cddff9bc5e5c6a89f6e1ce51d25f /epan/dissectors/packet-dhcpv6.c | |
parent | a0daeafa7ea5c4b399c4940e7582e97d726cb873 (diff) |
Fix a number of gcc _Wshadow warnings
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31557 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dhcpv6.c')
-rw-r--r-- | epan/dissectors/packet-dhcpv6.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-dhcpv6.c b/epan/dissectors/packet-dhcpv6.c index f8a847b097..7b89f16428 100644 --- a/epan/dissectors/packet-dhcpv6.c +++ b/epan/dissectors/packet-dhcpv6.c @@ -1523,12 +1523,12 @@ dissect_packetcable_ccc_option(proto_tree *v_tree, tvbuff_t *tvb, int optoff, guint8 fetch_tgt, timer_val, type; proto_item *vti; proto_tree *pkt_s_tree; - guint32 ipv4_addr; - guchar kr_name; /** A character in the kerberos realm name option */ - guint8 kr_value; /* The integer value of the character currently being tested */ + guint32 ipv4_address; + guchar kr_name; /** A character in the kerberos realm name option */ + guint8 kr_value; /* The integer value of the character currently being tested */ int kr_fail_flag = 0; /* Flag indicating an invalid character was found */ - int kr_pos = 0; /* The position of the first invalid character */ - int i =0; + int kr_pos = 0; /* The position of the first invalid character */ + int i = 0; char bit_fld[24]; subopt = tvb_get_ntohs(tvb, optoff); @@ -1554,9 +1554,9 @@ dissect_packetcable_ccc_option(proto_tree *v_tree, tvbuff_t *tvb, int optoff, case PKT_CCC_PRI_DHCP: /* IPv4 address values */ case PKT_CCC_SEC_DHCP: if (subopt_len == 4) { - ipv4_addr = tvb_get_ipv4(tvb, suboptoff); + ipv4_address = tvb_get_ipv4(tvb, suboptoff); proto_item_append_text(vti, "%s (%u byte%s%s)", - ip_to_str((guint8 *)&ipv4_addr), subopt_len, + ip_to_str((guint8 *)&ipv4_address), subopt_len, plurality(subopt_len, "", "s"), subopt_len != 4 ? " [Invalid]" : ""); } @@ -1580,9 +1580,9 @@ dissect_packetcable_ccc_option(proto_tree *v_tree, tvbuff_t *tvb, int optoff, /** Type 0 is IPv4 **/ else if (type == 1) { if (subopt_len == 5) { - ipv4_addr = tvb_get_ipv4(tvb, suboptoff+1); + ipv4_address = tvb_get_ipv4(tvb, suboptoff+1); proto_item_append_text(vti, "%s (%u byte%s%s)", - ip_to_str((guint8 *)&ipv4_addr), subopt_len, + ip_to_str((guint8 *)&ipv4_address), subopt_len, plurality(subopt_len, "", "s"), subopt_len != 5 ? " [Invalid]" : ""); } |