summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-lisp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-05-23 16:10:24 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-05-23 15:08:42 +0000
commitde29a8dd687a95b1460a7bd3e202808f840855f8 (patch)
tree9e7ac5e5cdebb4b529b6d7351233b589b003241c /epan/dissectors/packet-lisp.c
parentc94987d5c72ef7171e617f3be552f388e2f8f5c1 (diff)
downloadwireshark-de29a8dd687a95b1460a7bd3e202808f840855f8.tar.gz
LISP : error: declaration of 'address' shadows a global declaration [-Werror=shadow]
Change-Id: I3f490ec40ae3241e9836e0914d43424ff9565fb5 Reviewed-on: https://code.wireshark.org/review/1744 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lisp.c')
-rw-r--r--epan/dissectors/packet-lisp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-lisp.c b/epan/dissectors/packet-lisp.c
index 6bc3765083..2b77a43046 100644
--- a/epan/dissectors/packet-lisp.c
+++ b/epan/dissectors/packet-lisp.c
@@ -904,7 +904,7 @@ dissect_lcaf_iid(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offse
static int
dissect_lcaf_asn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip)
{
- const gchar *address;
+ const gchar *addr;
guint16 afi, addr_len = 0;
/* AS Number (4 bytes) */
@@ -918,9 +918,9 @@ dissect_lcaf_asn(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offse
offset += 2;
/* Address */
- address = get_addr_str(tvb, offset, afi, &addr_len);
- if (address && afi)
- proto_item_append_text(tip, ", Address: %s", address);
+ addr = get_addr_str(tvb, offset, afi, &addr_len);
+ if (addr && afi)
+ proto_item_append_text(tip, ", Address: %s", addr);
switch (afi) {
case AFNUM_RESERVED: