Commit 61d9cdf2a9ccb9e4770d7723db8b18b8952778ce

Authored by J.A. Magallon
Committed by Sam Ravnborg
1 parent 84c2a2eb34

[PATCH] kbuild: signed char fixes for scripts

This time I did not break anything... and they shut up gcc4 ;)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>

Showing 3 changed files with 8 additions and 8 deletions Side-by-side Diff

scripts/conmakehash.c
... ... @@ -33,7 +33,7 @@
33 33  
34 34 int getunicode(char **p0)
35 35 {
36   - unsigned char *p = *p0;
  36 + char *p = *p0;
37 37  
38 38 while (*p == ' ' || *p == '\t')
39 39 p++;
... ... @@ -207,9 +207,9 @@
207 207 * move then they may get dropped in pass 2, which breaks the
208 208 * kallsyms rules.
209 209 */
210   - if ((s->addr == _etext && strcmp(s->sym + offset, "_etext")) ||
211   - (s->addr == _einittext && strcmp(s->sym + offset, "_einittext")) ||
212   - (s->addr == _eextratext && strcmp(s->sym + offset, "_eextratext")))
  210 + if ((s->addr == _etext && strcmp((char*)s->sym + offset, "_etext")) ||
  211 + (s->addr == _einittext && strcmp((char*)s->sym + offset, "_einittext")) ||
  212 + (s->addr == _eextratext && strcmp((char*)s->sym + offset, "_eextratext")))
213 213 return 0;
214 214 }
215 215  
scripts/mod/sumversion.c
... ... @@ -252,9 +252,9 @@
252 252 }
253 253  
254 254 /* FIXME: Handle .s files differently (eg. # starts comments) --RR */
255   -static int parse_file(const signed char *fname, struct md4_ctx *md)
  255 +static int parse_file(const char *fname, struct md4_ctx *md)
256 256 {
257   - signed char *file;
  257 + char *file;
258 258 unsigned long i, len;
259 259  
260 260 file = grab_file(fname, &len);
... ... @@ -332,7 +332,7 @@
332 332 Sum all files in the same dir or subdirs.
333 333 */
334 334 while ((line = get_next_line(&pos, file, flen)) != NULL) {
335   - signed char* p = line;
  335 + char* p = line;
336 336 if (strncmp(line, "deps_", sizeof("deps_")-1) == 0) {
337 337 check_files = 1;
338 338 continue;
... ... @@ -458,7 +458,7 @@
458 458 close(fd);
459 459 }
460 460  
461   -static int strip_rcs_crap(signed char *version)
  461 +static int strip_rcs_crap(char *version)
462 462 {
463 463 unsigned int len, full_len;
464 464