summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-05-16 10:22:57 +0800
committerBernard Xiong <[email protected]>2019-05-16 10:22:57 +0800
commit6b1f8d9155be25fa7237556ce26954f8ee870587 (patch)
treee46492852ca5bdf414e29a3a41969d5177653f0c /components
parent4539172f5c97306a322ac1768c5c8eb4f878ea3c (diff)
remove gnu99 code
Diffstat (limited to 'components')
-rw-r--r--components/drivers/wlan/wlan_cfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/drivers/wlan/wlan_cfg.c b/components/drivers/wlan/wlan_cfg.c
index 43fed8e6e8..126cee40f5 100644
--- a/components/drivers/wlan/wlan_cfg.c
+++ b/components/drivers/wlan/wlan_cfg.c
@@ -55,9 +55,12 @@ static rt_uint16_t rt_wlan_cal_crc(rt_uint8_t *buff, int len)
while (len--)
{
+ int i;
+
wChar = *(buff++);
wCRCin ^= (wChar << 8);
- for (int i = 0; i < 8; i++)
+
+ for (i = 0; i < 8; i++)
{
if (wCRCin & 0x8000)
wCRCin = (wCRCin << 1) ^ wCPoly;