[PATCH] kbuild: Get rid of warnings in depmod + split-include

Sam Ravnborg (sam@ravnborg.org)
Fri, 31 May 2002 22:43:59 +0200


--PPYy/fEw/8QCHSq3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Remove compiletime warnings from mkdep.c and split-include.c
Credits for this patch goes to Keith Owens.

Credits for this patch goes to Keith Owens, I just extracted it from kbuild-2.5.

Sam

--PPYy/fEw/8QCHSq3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="warnings.diff"

--- mkdep.c.orig Fri May 31 21:59:07 2002
+++ mkdep.c Fri May 31 21:41:41 2002
@@ -268,7 +268,7 @@

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;
}
@@ -496,7 +496,7 @@

/* \<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);
--- split-include.c.orig Fri May 31 21:57:10 2002
+++ split-include.c Fri May 31 21:41:41 2002
@@ -115,10 +115,10 @@

/* 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;
}

--PPYy/fEw/8QCHSq3--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/