fix "warning array subscript has type 'char'"

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2021-04-14 19:12:43 +02:00
parent eb1b2902b8
commit 1a45b2ccea
7 changed files with 22 additions and 22 deletions

View File

@ -116,7 +116,7 @@ int main(int argc, const char * argv [])
/* We found #define CONFIG_foo or #undef CONFIG_foo.
* Make the output file name. */
str_config += sizeof(" CONFIG_") - 1;
for (itarget = 0; !isspace(str_config[itarget]); itarget++)
for (itarget = 0; !isspace((unsigned char)str_config[itarget]); itarget++)
{
int c = (unsigned char) str_config[itarget];
if (isupper(c)) c = tolower(c);