diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-06-01 19:51:06 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-06-01 17:53:27 +0000 |
commit | 0f7c74acaf0b1e02790e36520a7d1aee332cfc30 (patch) | |
tree | 105200ab7088545efb3dc01f16b65c89d779966d /epan/dissectors/packet-afs.c | |
parent | fb5e9e43c1429f1073a90e7dc92f79afaf18cec0 (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>
Diffstat (limited to 'epan/dissectors/packet-afs.c')
-rw-r--r-- | epan/dissectors/packet-afs.c | 6 |
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'; |