File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -343,7 +343,8 @@ static void dumpEspConn(
343
343
* socket can be found, return -1.
344
344
*/
345
345
static int getNextFreeSocket () {
346
- for (int i = 0 ; i < MAX_SOCKETS ; i ++ ) {
346
+ int i ;
347
+ for (i = 0 ; i < MAX_SOCKETS ; i ++ ) {
347
348
if (socketArray [i ].state == SOCKET_STATE_UNUSED ) {
348
349
return i ;
349
350
}
@@ -455,7 +456,8 @@ static void releaseSocket(
455
456
* Walk through each of the sockets and initialize each one.
456
457
*/
457
458
void netInit_esp8266_board () {
458
- for (int socketArrayIndex = 0 ; socketArrayIndex < MAX_SOCKETS ; socketArrayIndex ++ ) {
459
+ int socketArrayIndex ;
460
+ for (socketArrayIndex = 0 ; socketArrayIndex < MAX_SOCKETS ; socketArrayIndex ++ ) {
459
461
resetSocket (socketArrayIndex );
460
462
} // End of for each socket
461
463
} // netInit_esp8266_board
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ void esp8266_board_writeString(
62
62
) {
63
63
assert (length == 0 || buffer != NULL );
64
64
65
- for (size_t i = 0 ; i < length ; i ++ ) {
65
+ size_t i ;
66
+ for (i = 0 ; i < length ; i ++ ) {
66
67
os_printf ("%c" , buffer [i ]);
67
68
}
68
69
} // End of esp8266_board_writeString
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ void jshDelayMicroseconds(int microsec) {
108
108
// for the given number of microseconds PLUS multiple calls back to the
109
109
// WiFi environment.
110
110
int count = microsec / MAX_SLEEP_TIME_US ;
111
- for (int i = 0 ; i < count ; i ++ ) {
111
+ int i ;
112
+ for (i = 0 ; i < count ; i ++ ) {
112
113
os_delay_us (MAX_SLEEP_TIME_US );
113
114
// We may have a problem here. It was my understanding that system_soft_wdt_feed() fed
114
115
// the underlying OS but this appears not to be the case and all it does is prevent a
You can’t perform that action at this time.
0 commit comments