aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-09-04 13:53:52 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-09-04 11:55:50 +0000
commit1192606e885fbd3e580872c56143fcb12ae65815 (patch)
treec3957b11883b88e87dbdb2d3ad72b70f7f5f2cfd
parentb4045ba7c333a1b143bcaa2a17e6c804c0b64158 (diff)
Fix Mac OS X buildbot
packet-cp2179.c:719: warning: declaration of 'index' shadows a global declaration Change-Id: Ic622b4f90f9816a43bc62bcb3ce438fbfab3d8a5 Reviewed-on: https://code.wireshark.org/review/3983 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-cp2179.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-cp2179.c b/epan/dissectors/packet-cp2179.c
index 6bea9ab90d..e5686892fc 100644
--- a/epan/dissectors/packet-cp2179.c
+++ b/epan/dissectors/packet-cp2179.c
@@ -716,7 +716,7 @@ static bs_request_frame* copy_bs_request_frame(tvbuff_t *tvb )
{
/* Set up structures needed to add the protocol request and use it for dissecting response packet */
guint offset = 0;
- guint8 index=0 ;
+ guint8 idx=0 ;
bs_request_frame *frame;
guint16 num_objects=0;
@@ -739,8 +739,8 @@ static bs_request_frame* copy_bs_request_frame(tvbuff_t *tvb )
frame->requested_points = (guint8 *)wmem_alloc(wmem_file_scope(), num_objects * sizeof(guint8));
/* We have a range of 'request' points */
- for (index = 0; index < num_objects; index++) {
- frame->requested_points[index] = startpt;
+ for (idx = 0; idx < num_objects; idx++) {
+ frame->requested_points[idx] = startpt;
startpt++;
}
/* offset += 2; */
@@ -749,8 +749,8 @@ static bs_request_frame* copy_bs_request_frame(tvbuff_t *tvb )
else {
num_objects = frame->numberofcharacters;
frame->requested_points = (guint8 *)wmem_alloc(wmem_file_scope(), num_objects * sizeof(guint8));
- for (index = 0; index < num_objects; index++) {
- frame->requested_points[index] = tvb_get_guint8(tvb, offset);
+ for (idx = 0; idx < num_objects; idx++) {
+ frame->requested_points[idx] = tvb_get_guint8(tvb, offset);
offset += 1;
}