diff options
Diffstat (limited to 'scripts/basic/docproc.c')
| -rw-r--r-- | scripts/basic/docproc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index bfc1a9844..2c7a19b83 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
| @@ -197,10 +197,10 @@ void find_export_symbols(char * filename) | |||
| 197 | perror(real_filename); | 197 | perror(real_filename); |
| 198 | } | 198 | } |
| 199 | while (fgets(line, MAXLINESZ, fp)) { | 199 | while (fgets(line, MAXLINESZ, fp)) { |
| 200 | char *p; | 200 | unsigned char *p; |
| 201 | char *e; | 201 | unsigned char *e; |
| 202 | if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != 0) || | 202 | if (((p = (unsigned char *)strstr(line, "EXPORT_SYMBOL_GPL")) != 0) || |
| 203 | ((p = strstr(line, "EXPORT_SYMBOL")) != 0)) { | 203 | ((p = (unsigned char *)strstr(line, "EXPORT_SYMBOL")) != 0)) { |
| 204 | /* Skip EXPORT_SYMBOL{_GPL} */ | 204 | /* Skip EXPORT_SYMBOL{_GPL} */ |
| 205 | while (isalnum(*p) || *p == '_') | 205 | while (isalnum(*p) || *p == '_') |
| 206 | p++; | 206 | p++; |
| @@ -217,7 +217,7 @@ void find_export_symbols(char * filename) | |||
| 217 | while (isalnum(*e) || *e == '_') | 217 | while (isalnum(*e) || *e == '_') |
| 218 | e++; | 218 | e++; |
| 219 | *e = '\0'; | 219 | *e = '\0'; |
| 220 | add_new_symbol(sym, p); | 220 | add_new_symbol(sym, (char*)p); |
| 221 | } | 221 | } |
| 222 | } | 222 | } |
| 223 | fclose(fp); | 223 | fclose(fp); |
| @@ -281,7 +281,7 @@ void singfunc(char * filename, char * line) | |||
| 281 | 281 | ||
| 282 | /* Split line up in individual parameters preceded by FUNCTION */ | 282 | /* Split line up in individual parameters preceded by FUNCTION */ |
| 283 | for (i=0; line[i]; i++) { | 283 | for (i=0; line[i]; i++) { |
| 284 | if (isspace(line[i])) { | 284 | if (isspace((unsigned char) line[i])) { |
| 285 | line[i] = '\0'; | 285 | line[i] = '\0'; |
| 286 | startofsym = 1; | 286 | startofsym = 1; |
| 287 | continue; | 287 | continue; |
| @@ -308,10 +308,10 @@ void singfunc(char * filename, char * line) | |||
| 308 | void parse_file(FILE *infile) | 308 | void parse_file(FILE *infile) |
| 309 | { | 309 | { |
| 310 | char line[MAXLINESZ]; | 310 | char line[MAXLINESZ]; |
| 311 | char * s; | 311 | unsigned char * s; |
| 312 | while (fgets(line, MAXLINESZ, infile)) { | 312 | while (fgets(line, MAXLINESZ, infile)) { |
| 313 | if (line[0] == '!') { | 313 | if (line[0] == '!') { |
| 314 | s = line + 2; | 314 | s = (unsigned char *)line + 2; |
| 315 | switch (line[1]) { | 315 | switch (line[1]) { |
| 316 | case 'E': | 316 | case 'E': |
| 317 | while (*s && !isspace(*s)) s++; | 317 | while (*s && !isspace(*s)) s++; |
| @@ -335,7 +335,7 @@ void parse_file(FILE *infile) | |||
| 335 | /* function names */ | 335 | /* function names */ |
| 336 | while (isspace(*s)) | 336 | while (isspace(*s)) |
| 337 | s++; | 337 | s++; |
| 338 | singlefunctions(line +2, s); | 338 | singlefunctions(line +2, (char*)s); |
| 339 | break; | 339 | break; |
| 340 | default: | 340 | default: |
| 341 | defaultline(line); | 341 | defaultline(line); |
