aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2015-06-01 19:51:06 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2015-06-01 17:53:27 +0000
commit0f7c74acaf0b1e02790e36520a7d1aee332cfc30 (patch)
tree105200ab7088545efb3dc01f16b65c89d779966d
parentfb5e9e43c1429f1073a90e7dc92f79afaf18cec0 (diff)
AFS: Fix Mac OS X buildbot (-Wshadow)
Rename index -> idx Change-Id: I22b23535e3d24866bdbe63be8f242a3c3ebcc6ba Reviewed-on: https://code.wireshark.org/review/8726 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-afs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-afs.c b/epan/dissectors/packet-afs.c
index ab5fadd779..9613533774 100644
--- a/epan/dissectors/packet-afs.c
+++ b/epan/dissectors/packet-afs.c
@@ -561,11 +561,11 @@ static void OUT_RXStringV(ptvcursor_t *cursor, int field, guint32 length)
char* str = (char*)wmem_alloc(wmem_packet_scope(), length+1);
int offset = ptvcursor_current_offset(cursor),
start_offset = offset;
- guint32 index;
+ guint32 idx;
- for (index = 0; index<length; index++)
+ for (idx = 0; idx<length; idx++)
{
- str[index] = (char)tvb_get_ntohl(tvb, offset);
+ str[idx] = (char)tvb_get_ntohl(tvb, offset);
offset += 4;
}
str[length] = '\0';