Commit ab9f25f2 authored by Linus Torvalds's avatar Linus Torvalds

Proper usage of isupper/tolower for build scripts.

parent b2ea3f31
......@@ -267,7 +267,7 @@ void use_config(const char * name, int len)
pc += 7;
for (i = 0; i < len; i++) {
char c = name[i];
int c = (unsigned char) name[i];
if (isupper(c)) c = tolower(c);
if (c == '_') c = '/';
pc[i] = c;
......
......@@ -117,7 +117,7 @@ int main(int argc, const char * argv [])
str_config += sizeof("CONFIG_") - 1;
for (itarget = 0; !isspace(str_config[itarget]); itarget++)
{
char c = str_config[itarget];
int c = (unsigned char) str_config[itarget];
if (isupper(c)) c = tolower(c);
if (c == '_') c = '/';
ptarget[itarget] = c;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment