Fix verboten C99/C11 construct in sscanf()

This commit is contained in:
Gregory Nutt
2017-01-09 11:23:05 -06:00
parent bbc16f9aea
commit e3a535f66f
+2 -1
View File
@@ -159,6 +159,7 @@ static FAR const char *findscanset(FAR const char *fmt,
int c;
int n;
int v;
int i;
fmt++; /* Skip '[' */
@@ -253,7 +254,7 @@ doswitch:
doexit:
if (v) /* Default => accept */
{
for (int i = 0; i < 32; i++) /* Invert all */
for (i = 0; i < 32; i++) /* Invert all */
{
set[i] ^= 0xFF;
}