diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mkdep.c | 4 | ||||
-rw-r--r-- | scripts/split-include.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mkdep.c b/scripts/mkdep.c index 433fba27c..b11406cdb 100644 --- a/scripts/mkdep.c +++ b/scripts/mkdep.c @@ -228,7 +228,7 @@ void use_config(const char * name, int len) for (i = 0; i < len; i++) { char c = name[i]; - if (isupper(c)) c = tolower(c); + if (isupper((int)c)) c = tolower((int)c); if (c == '_') c = '/'; pc[i] = c; } @@ -446,7 +446,7 @@ pound_define_undef_CONFIG_word: /* \<CONFIG_(\w*) */ cee: - if (next >= map+2 && (isalnum(next[-2]) || next[-2] == '_')) + if (next >= map+2 && (isalnum((int)next[-2]) || next[-2] == '_')) goto start; GETNEXT NOTCASE('O', __start); GETNEXT NOTCASE('N', __start); diff --git a/scripts/split-include.c b/scripts/split-include.c index 4c02cc897..d6829a93f 100644 --- a/scripts/split-include.c +++ b/scripts/split-include.c @@ -115,10 +115,10 @@ int main(int argc, const char * argv []) /* Make the output file name. */ str_config += sizeof("CONFIG_") - 1; - for (itarget = 0; !isspace(str_config[itarget]); itarget++) + for (itarget = 0; !isspace((int)str_config[itarget]); itarget++) { char c = str_config[itarget]; - if (isupper(c)) c = tolower(c); + if (isupper((int)c)) c = tolower((int)c); if (c == '_') c = '/'; ptarget[itarget] = c; } |