]> git.hungrycats.org Git - linux/commitdiff
Proper usage of isupper/tolower for build scripts.
authorLinus Torvalds <torvalds@home.transmeta.com>
Sun, 2 Jun 2002 11:34:26 +0000 (04:34 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 2 Jun 2002 11:34:26 +0000 (04:34 -0700)
scripts/mkdep.c
scripts/split-include.c

index cf37e006dcd81290cc741b2643be36c3c471f67a..01386ea2563cc8246ea043a31246a4e17e15eb03 100644 (file)
@@ -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;
index 3ab9fed87e285a9241957b9769a44df7b8d1bc5e..0f7f9ef347a0b3414b97b9d76c1a866ddb34a7e1 100644 (file)
@@ -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;