diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-31 10:41:31 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-31 10:41:31 +0000 |
commit | eaecbf33f70c0eed2f9a60b392e5782e03a9be2f (patch) | |
tree | 0080fd0c339ed1943275d4e2df23612ee50e0c37 | |
parent | 69a20f0aca1f4146210fe8c39c8638671e6558c5 (diff) | |
download | busybox-w32-eaecbf33f70c0eed2f9a60b392e5782e03a9be2f.tar.gz busybox-w32-eaecbf33f70c0eed2f9a60b392e5782e03a9be2f.tar.bz2 busybox-w32-eaecbf33f70c0eed2f9a60b392e5782e03a9be2f.zip |
Fixup some silly prototype warnings
-rw-r--r-- | coreutils/expr.c | 12 | ||||
-rw-r--r-- | coreutils/tr.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 6 | ||||
-rw-r--r-- | util-linux/mkfs_minix.c | 4 |
4 files changed, 11 insertions, 13 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index d6cc82e3e..0299cc73a 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
@@ -194,7 +194,7 @@ nextarg (char *str) | |||
194 | /* The comparison operator handling functions. */ | 194 | /* The comparison operator handling functions. */ |
195 | 195 | ||
196 | #define cmpf(name, rel) \ | 196 | #define cmpf(name, rel) \ |
197 | static int name (l, r) VALUE *l; VALUE *r; \ | 197 | static int name (VALUE *l, VALUE *r) \ |
198 | { \ | 198 | { \ |
199 | if (l->type == string || r->type == string) { \ | 199 | if (l->type == string || r->type == string) { \ |
200 | tostring (l); \ | 200 | tostring (l); \ |
@@ -217,7 +217,7 @@ static int name (l, r) VALUE *l; VALUE *r; \ | |||
217 | 217 | ||
218 | #define arithf(name, op) \ | 218 | #define arithf(name, op) \ |
219 | static \ | 219 | static \ |
220 | int name (l, r) VALUE *l; VALUE *r; \ | 220 | int name (VALUE *l, VALUE *r) \ |
221 | { \ | 221 | { \ |
222 | if (!toarith (l) || !toarith (r)) \ | 222 | if (!toarith (l) || !toarith (r)) \ |
223 | error_msg_and_die ("non-numeric argument"); \ | 223 | error_msg_and_die ("non-numeric argument"); \ |
@@ -225,7 +225,7 @@ int name (l, r) VALUE *l; VALUE *r; \ | |||
225 | } | 225 | } |
226 | 226 | ||
227 | #define arithdivf(name, op) \ | 227 | #define arithdivf(name, op) \ |
228 | static int name (l, r) VALUE *l; VALUE *r; \ | 228 | static int name (VALUE *l, VALUE *r) \ |
229 | { \ | 229 | { \ |
230 | if (!toarith (l) || !toarith (r)) \ | 230 | if (!toarith (l) || !toarith (r)) \ |
231 | error_msg_and_die ( "non-numeric argument"); \ | 231 | error_msg_and_die ( "non-numeric argument"); \ |
@@ -414,7 +414,7 @@ static VALUE *eval5 (void) | |||
414 | static VALUE *eval4 (void) | 414 | static VALUE *eval4 (void) |
415 | { | 415 | { |
416 | VALUE *l, *r; | 416 | VALUE *l, *r; |
417 | int (*fxn) (), val; | 417 | int (*fxn) (VALUE *, VALUE *), val; |
418 | 418 | ||
419 | l = eval5 (); | 419 | l = eval5 (); |
420 | while (1) { | 420 | while (1) { |
@@ -440,7 +440,7 @@ static VALUE *eval4 (void) | |||
440 | static VALUE *eval3 (void) | 440 | static VALUE *eval3 (void) |
441 | { | 441 | { |
442 | VALUE *l, *r; | 442 | VALUE *l, *r; |
443 | int (*fxn) (), val; | 443 | int (*fxn) (VALUE *, VALUE *), val; |
444 | 444 | ||
445 | l = eval4 (); | 445 | l = eval4 (); |
446 | while (1) { | 446 | while (1) { |
@@ -464,7 +464,7 @@ static VALUE *eval3 (void) | |||
464 | static VALUE *eval2 (void) | 464 | static VALUE *eval2 (void) |
465 | { | 465 | { |
466 | VALUE *l, *r; | 466 | VALUE *l, *r; |
467 | int (*fxn) (), val; | 467 | int (*fxn) (VALUE *, VALUE *), val; |
468 | 468 | ||
469 | l = eval3 (); | 469 | l = eval3 (); |
470 | while (1) { | 470 | while (1) { |
diff --git a/coreutils/tr.c b/coreutils/tr.c index 2665d926f..e2a4ef6c5 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -44,7 +44,7 @@ static unsigned char *pvector; | |||
44 | static char *pinvec, *poutvec; | 44 | static char *pinvec, *poutvec; |
45 | 45 | ||
46 | 46 | ||
47 | static void convert() | 47 | static void convert(void) |
48 | { | 48 | { |
49 | short read_chars = 0; | 49 | short read_chars = 0; |
50 | short c, coded; | 50 | short c, coded; |
diff --git a/shell/hush.c b/shell/hush.c index 195013869..27afd3e7c 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -349,7 +349,7 @@ static void setup_string_in_str(struct in_str *i, const char *s); | |||
349 | /* close_me manipulations: */ | 349 | /* close_me manipulations: */ |
350 | static void mark_open(int fd); | 350 | static void mark_open(int fd); |
351 | static void mark_closed(int fd); | 351 | static void mark_closed(int fd); |
352 | static void close_all(); | 352 | static void close_all(void); |
353 | /* "run" the final data structures: */ | 353 | /* "run" the final data structures: */ |
354 | static char *indenter(int i); | 354 | static char *indenter(int i); |
355 | static int free_pipe_list(struct pipe *head, int indent); | 355 | static int free_pipe_list(struct pipe *head, int indent); |
@@ -975,7 +975,7 @@ static void mark_closed(int fd) | |||
975 | free(tmp); | 975 | free(tmp); |
976 | } | 976 | } |
977 | 977 | ||
978 | static void close_all() | 978 | static void close_all(void) |
979 | { | 979 | { |
980 | struct close_me *c; | 980 | struct close_me *c; |
981 | for (c=close_me_head; c; c=c->next) { | 981 | for (c=close_me_head; c; c=c->next) { |
@@ -2547,7 +2547,7 @@ static int parse_file_outer(FILE *f) | |||
2547 | /* Make sure we have a controlling tty. If we get started under a job | 2547 | /* Make sure we have a controlling tty. If we get started under a job |
2548 | * aware app (like bash for example), make sure we are now in charge so | 2548 | * aware app (like bash for example), make sure we are now in charge so |
2549 | * we don't fight over who gets the foreground */ | 2549 | * we don't fight over who gets the foreground */ |
2550 | static void setup_job_control() | 2550 | static void setup_job_control(void) |
2551 | { | 2551 | { |
2552 | static pid_t shell_pgrp; | 2552 | static pid_t shell_pgrp; |
2553 | /* Loop until we are in the foreground. */ | 2553 | /* Loop until we are in the foreground. */ |
diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index a388d0ab0..fb9aeea38 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c | |||
@@ -670,9 +670,7 @@ static void check_blocks(void) | |||
670 | printf("one bad block\n"); | 670 | printf("one bad block\n"); |
671 | } | 671 | } |
672 | 672 | ||
673 | static void get_list_blocks(filename) | 673 | static void get_list_blocks(char *filename) |
674 | char *filename; | ||
675 | |||
676 | { | 674 | { |
677 | FILE *listfile; | 675 | FILE *listfile; |
678 | unsigned long blockno; | 676 | unsigned long blockno; |