diff options
author | Tom Rini <trini@kernel.crashing.org> | 2004-10-31 05:38:28 +0200 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-10-31 05:38:28 +0200 |
commit | 7928d90e9c01bf5ebfdc5c48871a97547ef70d29 (patch) | |
tree | a8fd7e8fdcac168d8186d5b72c8108df5235b727 /scripts | |
parent | 7f2359b191e2ac58a60189b8e87d5e9d28d8c563 (diff) | |
download | history-7928d90e9c01bf5ebfdc5c48871a97547ef70d29.tar.gz |
kbuild: additional warning fixes on Solaris 9
A coworker of mine give them a look-over and spotted a few
places where I missed changing some casts.
Signed-off-by: Tom Rini <trini@kernel.crashing.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/basic/fixdep.c | 8 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 56e4a3d9a8a7c9..7f42c5d8a5a2f7 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c @@ -225,10 +225,10 @@ void parse_config_file(signed char *map, size_t len) signed char *p, *q; for (; m < end; m++) { - if (*m == INT_CONF) { p = (char *) m ; goto conf; } - if (*m == INT_ONFI) { p = (char *) m-1; goto conf; } - if (*m == INT_NFIG) { p = (char *) m-2; goto conf; } - if (*m == INT_FIG_) { p = (char *) m-3; goto conf; } + if (*m == INT_CONF) { p = (signed char *) m ; goto conf; } + if (*m == INT_ONFI) { p = (signed char *) m-1; goto conf; } + if (*m == INT_NFIG) { p = (signed char *) m-2; goto conf; } + if (*m == INT_FIG_) { p = (signed char *) m-3; goto conf; } continue; conf: if (p > map + len - 7) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 74cb1c0c8e75b4..347549c35d6c24 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -219,7 +219,7 @@ get_next_line(unsigned long *pos, void *file, unsigned long size) static char line[4096]; int skip = 1; size_t len = 0; - signed char *p = (char *)file + *pos; + signed char *p = (signed char *)file + *pos; char *s = line; for (; *pos < size ; (*pos)++) |