diff options
author | Michael Mann <mmann78@netscape.net> | 2016-07-24 10:14:48 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-07-24 15:16:14 +0000 |
commit | 8505fb08c1f835fd959872b321de12c13b182583 (patch) | |
tree | 1c8f17c8290162817785c6064e773ce66014df88 /plugins | |
parent | a06042d614eea9418bb625fbe38d89e45defced9 (diff) |
Fix shadow variable warnings.
Change-Id: I1e6bd722b3f04f171b462fc680ca080bb7ec03c7
Reviewed-on: https://code.wireshark.org/review/16625
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wimax/crc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/wimax/crc.c b/plugins/wimax/crc.c index b2c9b53e45..dca0e72794 100644 --- a/plugins/wimax/crc.c +++ b/plugins/wimax/crc.c @@ -55,13 +55,13 @@ extern guint16 crc16_table[256]; */ void wimax_mac_gen_crc32_table(void) { - guint32 index, bit; + guint32 i, bit; guint32 crc; /* little-endian (reflected) algorithm */ - for ( index = 0; index < G_N_ELEMENTS(crc32_table); index++ ) + for ( i = 0; i < G_N_ELEMENTS(crc32_table); i++ ) { - crc = ( index << 24 ); + crc = ( i << 24 ); for ( bit = 0; bit < 8; bit++ ) { if ( crc & 0x80000000U ) @@ -69,7 +69,7 @@ void wimax_mac_gen_crc32_table(void) else crc = ( crc << 1 ); } - crc32_table[index] = crc; + crc32_table[i] = crc; } } @@ -90,12 +90,12 @@ void wimax_mac_gen_crc32_table(void) */ void wimax_mac_gen_crc8_table(void) { - guint index, bit; + guint i, bit; guint8 crc; - for ( index = 0; index < G_N_ELEMENTS(crc8_table); index++ ) + for ( i = 0; i < G_N_ELEMENTS(crc8_table); i++ ) { - crc = index; + crc = i; for ( bit = 0; bit < 8; bit++ ) { if ( crc & 0x80 ) @@ -103,7 +103,7 @@ void wimax_mac_gen_crc8_table(void) else crc = ( crc << 1 ); } - crc8_table[index] = crc; + crc8_table[i] = crc; } } #endif |