summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-07-10 21:45:23 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-07-10 21:45:23 +0000
commit1ffd1d069ca4c5ffe16fea6175dab1b9bbb15820 (patch)
treec9f231d9ad3336e3a8d5e42d724dc94203c1eca4
parent848c5f1407009dc520afa0df65f30c118c09023e (diff)
Fixes for IRIX libc warnings when x-compiling.
-rw-r--r--scripts/mkdep.c4
-rw-r--r--scripts/split-include.c4
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;
}