diff options
Diffstat (limited to 'scripts/basic/fixdep.c')
-rw-r--r-- | scripts/basic/fixdep.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 7f42c5d8a5a2..0b61bea869f7 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
@@ -212,23 +212,23 @@ void use_config(char *m, int slen) | |||
212 | if (*p == '_') | 212 | if (*p == '_') |
213 | *p = '/'; | 213 | *p = '/'; |
214 | else | 214 | else |
215 | *p = tolower((unsigned char)*p); | 215 | *p = tolower((int)*p); |
216 | } | 216 | } |
217 | printf(" $(wildcard include/config/%s.h) \\\n", s); | 217 | printf(" $(wildcard include/config/%s.h) \\\n", s); |
218 | } | 218 | } |
219 | 219 | ||
220 | void parse_config_file(signed char *map, size_t len) | 220 | void parse_config_file(char *map, size_t len) |
221 | { | 221 | { |
222 | int *end = (int *) (map + len); | 222 | int *end = (int *) (map + len); |
223 | /* start at +1, so that p can never be < map */ | 223 | /* start at +1, so that p can never be < map */ |
224 | int *m = (int *) map + 1; | 224 | int *m = (int *) map + 1; |
225 | signed char *p, *q; | 225 | char *p, *q; |
226 | 226 | ||
227 | for (; m < end; m++) { | 227 | for (; m < end; m++) { |
228 | if (*m == INT_CONF) { p = (signed char *) m ; goto conf; } | 228 | if (*m == INT_CONF) { p = (char *) m ; goto conf; } |
229 | if (*m == INT_ONFI) { p = (signed char *) m-1; goto conf; } | 229 | if (*m == INT_ONFI) { p = (char *) m-1; goto conf; } |
230 | if (*m == INT_NFIG) { p = (signed char *) m-2; goto conf; } | 230 | if (*m == INT_NFIG) { p = (char *) m-2; goto conf; } |
231 | if (*m == INT_FIG_) { p = (signed char *) m-3; goto conf; } | 231 | if (*m == INT_FIG_) { p = (char *) m-3; goto conf; } |
232 | continue; | 232 | continue; |
233 | conf: | 233 | conf: |
234 | if (p > map + len - 7) | 234 | if (p > map + len - 7) |
@@ -291,9 +291,9 @@ void do_config_file(char *filename) | |||
291 | 291 | ||
292 | void parse_dep_file(void *map, size_t len) | 292 | void parse_dep_file(void *map, size_t len) |
293 | { | 293 | { |
294 | signed char *m = map; | 294 | char *m = map; |
295 | signed char *end = m + len; | 295 | char *end = m + len; |
296 | signed char *p; | 296 | char *p; |
297 | char s[PATH_MAX]; | 297 | char s[PATH_MAX]; |
298 | 298 | ||
299 | p = strchr(m, ':'); | 299 | p = strchr(m, ':'); |