diff options
| author | Bernard Xiong <[email protected]> | 2019-05-16 10:22:57 +0800 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2019-05-16 10:22:57 +0800 |
| commit | 6b1f8d9155be25fa7237556ce26954f8ee870587 (patch) | |
| tree | e46492852ca5bdf414e29a3a41969d5177653f0c /bsp/amebaz | |
| parent | 4539172f5c97306a322ac1768c5c8eb4f878ea3c (diff) | |
remove gnu99 code
Diffstat (limited to 'bsp/amebaz')
| -rw-r--r-- | bsp/amebaz/applications/smartconfig_app.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bsp/amebaz/applications/smartconfig_app.c b/bsp/amebaz/applications/smartconfig_app.c index 4302fe7937..582bbf5d98 100644 --- a/bsp/amebaz/applications/smartconfig_app.c +++ b/bsp/amebaz/applications/smartconfig_app.c @@ -69,6 +69,7 @@ static int rt_wlan_device_connetct(char *ssid, char *passwd) static void airkiss_send_notification(uint8_t random) { + int i; int sock = -1; int udpbufsize = 2; struct sockaddr_in UDPBCAddr, UDPBCServerAddr; @@ -102,7 +103,7 @@ static void airkiss_send_notification(uint8_t random) goto _exit; } - for (int i = 0; i <= 20; i++) + for (i = 0; i <= 20; i++) { int ret = sendto(sock, (char *)&random, 1, 0, (struct sockaddr *)&UDPBCAddr, sizeof(UDPBCAddr)); rt_thread_delay(10); |
