diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-31 13:41:31 +0300 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-31 13:41:31 +0300 |
commit | eaecbf33f70c0eed2f9a60b392e5782e03a9be2f (patch) | |
tree | 0080fd0c339ed1943275d4e2df23612ee50e0c37 /coreutils/expr.c | |
parent | 69a20f0aca1f4146210fe8c39c8638671e6558c5 (diff) |
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) /* The comparison operator handling functions. */ #define cmpf(name, rel) \ -static int name (l, r) VALUE *l; VALUE *r; \ +static int name (VALUE *l, VALUE *r) \ { \ if (l->type == string || r->type == string) { \ tostring (l); \ @@ -217,7 +217,7 @@ static int name (l, r) VALUE *l; VALUE *r; \ #define arithf(name, op) \ static \ -int name (l, r) VALUE *l; VALUE *r; \ +int name (VALUE *l, VALUE *r) \ { \ if (!toarith (l) || !toarith (r)) \ error_msg_and_die ("non-numeric argument"); \ @@ -225,7 +225,7 @@ int name (l, r) VALUE *l; VALUE *r; \ } #define arithdivf(name, op) \ -static int name (l, r) VALUE *l; VALUE *r; \ +static int name (VALUE *l, VALUE *r) \ { \ if (!toarith (l) || !toarith (r)) \ error_msg_and_die ( "non-numeric argument"); \ @@ -414,7 +414,7 @@ static VALUE *eval5 (void) static VALUE *eval4 (void) { VALUE *l, *r; - int (*fxn) (), val; + int (*fxn) (VALUE *, VALUE *), val; l = eval5 (); while (1) { @@ -440,7 +440,7 @@ static VALUE *eval4 (void) static VALUE *eval3 (void) { VALUE *l, *r; - int (*fxn) (), val; + int (*fxn) (VALUE *, VALUE *), val; l = eval4 (); while (1) { @@ -464,7 +464,7 @@ static VALUE *eval3 (void) static VALUE *eval2 (void) { VALUE *l, *r; - int (*fxn) (), val; + int (*fxn) (VALUE *, VALUE *), val; l = eval3 (); while (1) { |