diff options
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/expr.c | 12 | ||||
-rw-r--r-- | coreutils/tr.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index d6cc82e..0299cc7 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) { diff --git a/coreutils/tr.c b/coreutils/tr.c index 2665d92..e2a4ef6 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c @@ -44,7 +44,7 @@ static unsigned char *pvector; static char *pinvec, *poutvec; -static void convert() +static void convert(void) { short read_chars = 0; short c, coded; |