aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hilscher.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-28 21:09:57 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2008-06-28 21:09:57 +0000
commit61284ca876f6d8f86e03a26cea536ce026c2d737 (patch)
tree376788913665f3c1530a800e451c46e56d3998d9 /epan/dissectors/packet-hilscher.c
parent1133948d05aec6b46fbbbf6b1b8fd967df990032 (diff)
Fix some warnings reported by gcc -Wshadow ...
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25628 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-hilscher.c')
-rw-r--r--epan/dissectors/packet-hilscher.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-hilscher.c b/epan/dissectors/packet-hilscher.c
index 626943d41b..1e215ecf25 100644
--- a/epan/dissectors/packet-hilscher.c
+++ b/epan/dissectors/packet-hilscher.c
@@ -93,7 +93,7 @@ dissect_hilscher_netanalyzer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
{
proto_item *ti = NULL;
guint gpio_num;
- guint gpio_edge;
+ guint gpio_edgex;
guchar *szInfo = NULL;
#define MAX_BUFFER 60
@@ -116,9 +116,9 @@ dissect_hilscher_netanalyzer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
offset++;
if (tree)
ti = proto_tree_add_item (tree, hf_gpio_edge, tvb, offset, 1, FALSE);
- gpio_edge = (tvb_get_guint8(tvb, offset) & 0x01);
+ gpio_edgex = (tvb_get_guint8(tvb, offset) & 0x01);
- if (gpio_edge == 0x00)
+ if (gpio_edgex == 0x00)
g_snprintf(szInfo, MAX_BUFFER, "netANALYZER event on GPIO %d (positive edge)", gpio_num);
else
g_snprintf(szInfo, MAX_BUFFER, "netANALYZER event on GPIO %d (negative edge)", gpio_num);