diff options
author | J.A. Magallon <jamagallon@able.es> | 2005-06-25 17:59:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:25:07 -0400 |
commit | 48b9d03c5f20a0585bb6f7d8c4abad3661df5d75 (patch) | |
tree | 01168bdbbfd92510412afb38d976d78f77f324f7 /scripts/basic/docproc.c | |
parent | f14c6fd0fc9fbaf242254c84ba2632decb25e91a (diff) |
[PATCH] Kill signed chars
scripts/ is full of mismatches between char* params an signed char* arguments,
and viceversa. gcc4 now complaints loud about this. Patch below deletes all
those 'signed'.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts/basic/docproc.c')
-rw-r--r-- | scripts/basic/docproc.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/basic/docproc.c b/scripts/basic/docproc.c index 8ca7ecdb68fb..cb02baa63256 100644 --- a/scripts/basic/docproc.c +++ b/scripts/basic/docproc.c | |||
@@ -52,7 +52,7 @@ FILEONLY *internalfunctions; | |||
52 | FILEONLY *externalfunctions; | 52 | FILEONLY *externalfunctions; |
53 | FILEONLY *symbolsonly; | 53 | FILEONLY *symbolsonly; |
54 | 54 | ||
55 | typedef void FILELINE(char * file, signed char * line); | 55 | typedef void FILELINE(char * file, char * line); |
56 | FILELINE * singlefunctions; | 56 | FILELINE * singlefunctions; |
57 | FILELINE * entity_system; | 57 | FILELINE * entity_system; |
58 | 58 | ||
@@ -148,9 +148,9 @@ struct symfile * filename_exist(char * filename) | |||
148 | * Files are separated by tabs. | 148 | * Files are separated by tabs. |
149 | */ | 149 | */ |
150 | void adddep(char * file) { printf("\t%s", file); } | 150 | void adddep(char * file) { printf("\t%s", file); } |
151 | void adddep2(char * file, signed char * line) { line = line; adddep(file); } | 151 | void adddep2(char * file, char * line) { line = line; adddep(file); } |
152 | void noaction(char * line) { line = line; } | 152 | void noaction(char * line) { line = line; } |
153 | void noaction2(char * file, signed char * line) { file = file; line = line; } | 153 | void noaction2(char * file, char * line) { file = file; line = line; } |
154 | 154 | ||
155 | /* Echo the line without further action */ | 155 | /* Echo the line without further action */ |
156 | void printline(char * line) { printf("%s", line); } | 156 | void printline(char * line) { printf("%s", line); } |
@@ -179,8 +179,8 @@ void find_export_symbols(char * filename) | |||
179 | perror(real_filename); | 179 | perror(real_filename); |
180 | } | 180 | } |
181 | while(fgets(line, MAXLINESZ, fp)) { | 181 | while(fgets(line, MAXLINESZ, fp)) { |
182 | signed char *p; | 182 | char *p; |
183 | signed char *e; | 183 | char *e; |
184 | if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != 0) || | 184 | if (((p = strstr(line, "EXPORT_SYMBOL_GPL")) != 0) || |
185 | ((p = strstr(line, "EXPORT_SYMBOL")) != 0)) { | 185 | ((p = strstr(line, "EXPORT_SYMBOL")) != 0)) { |
186 | /* Skip EXPORT_SYMBOL{_GPL} */ | 186 | /* Skip EXPORT_SYMBOL{_GPL} */ |
@@ -253,7 +253,7 @@ void extfunc(char * filename) { docfunctions(filename, FUNCTION); } | |||
253 | * Call kernel-doc with the following parameters: | 253 | * Call kernel-doc with the following parameters: |
254 | * kernel-doc -docbook -function function1 [-function function2] | 254 | * kernel-doc -docbook -function function1 [-function function2] |
255 | */ | 255 | */ |
256 | void singfunc(char * filename, signed char * line) | 256 | void singfunc(char * filename, char * line) |
257 | { | 257 | { |
258 | char *vec[200]; /* Enough for specific functions */ | 258 | char *vec[200]; /* Enough for specific functions */ |
259 | int i, idx = 0; | 259 | int i, idx = 0; |
@@ -290,7 +290,7 @@ void singfunc(char * filename, signed char * line) | |||
290 | void parse_file(FILE *infile) | 290 | void parse_file(FILE *infile) |
291 | { | 291 | { |
292 | char line[MAXLINESZ]; | 292 | char line[MAXLINESZ]; |
293 | signed char * s; | 293 | char * s; |
294 | while(fgets(line, MAXLINESZ, infile)) { | 294 | while(fgets(line, MAXLINESZ, infile)) { |
295 | if (line[0] == '!') { | 295 | if (line[0] == '!') { |
296 | s = line + 2; | 296 | s = line + 2; |