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 /coreutils/expr.c | |
parent | 69a20f0aca1f4146210fe8c39c8638671e6558c5 (diff) | |
download | busybox-w32-eaecbf33f70c0eed2f9a60b392e5782e03a9be2f.tar.gz busybox-w32-eaecbf33f70c0eed2f9a60b392e5782e03a9be2f.tar.bz2 busybox-w32-eaecbf33f70c0eed2f9a60b392e5782e03a9be2f.zip |
Fixup some silly prototype warnings
Diffstat (limited to 'coreutils/expr.c')
-rw-r--r-- | coreutils/expr.c | 12 |
1 files changed, 6 insertions, 6 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) { |