diff options
| author | joerg <joerg@NetBSD.org> | 2017-07-01 23:12:08 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2017-07-01 23:12:08 +0000 |
| commit | 59ca394562c5760973171f0d1bf7df6097072a56 (patch) | |
| tree | 2be1076f28748521d2c43d574b8840e83237b1d1 /bin/ksh/expr.c | |
| parent | fe47da3ca71b1af997d0e42ee27d3ac599f6f922 (diff) | |
Kill enough K&R cruft to build with clang again.
Diffstat (limited to 'bin/ksh/expr.c')
| -rw-r--r-- | bin/ksh/expr.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/bin/ksh/expr.c b/bin/ksh/expr.c index 88ab86af6c4..9ac3d96bcc5 100644 --- a/bin/ksh/expr.c +++ b/bin/ksh/expr.c @@ -1,4 +1,4 @@ -/* $NetBSD: expr.c,v 1.10 2017/06/30 04:41:19 kamil Exp $ */ +/* $NetBSD: expr.c,v 1.11 2017/07/01 23:12:08 joerg Exp $ */ /* * Korn expression evaluation @@ -9,7 +9,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: expr.c,v 1.10 2017/06/30 04:41:19 kamil Exp $"); +__RCSID("$NetBSD: expr.c,v 1.11 2017/07/01 23:12:08 joerg Exp $"); #endif @@ -138,8 +138,7 @@ static void evalerr ARGS((Expr_state *es, enum error_type type, const char *str)) GCC_FUNC_ATTR(noreturn); static struct tbl *evalexpr ARGS((Expr_state *es, enum prec prec)); static void token ARGS((Expr_state *es)); -static struct tbl *do_ppmm ARGS((Expr_state *es, enum token op, - struct tbl *vasn, bool is_prefix)); +static struct tbl *do_ppmm(Expr_state *, enum token, struct tbl *, bool); static void assign_check ARGS((Expr_state *es, enum token op, struct tbl *vasn)); static struct tbl *tempvar ARGS((void)); @@ -537,11 +536,7 @@ token(es) /* Do a ++ or -- operation */ static struct tbl * -do_ppmm(es, op, vasn, is_prefix) - Expr_state *es; - enum token op; - struct tbl *vasn; - bool is_prefix; +do_ppmm(Expr_state *es, enum token op, struct tbl *vasn, bool is_prefix) { struct tbl *vl; int oval; |
