diff options
author | Philippe Charnier <charnier@FreeBSD.org> | 2012-01-25 08:42:19 +0000 |
---|---|---|
committer | Philippe Charnier <charnier@FreeBSD.org> | 2012-01-25 08:42:19 +0000 |
commit | 2fae4c3d9539022980a143fbc653cbaab696f5aa (patch) | |
tree | 87e53751614cd8153750969022f9e8aa01d069bc /bin/sh/arith_yacc.c | |
parent | a22ed494f80e3a45a8b7fc7d4ad781b802c61bc5 (diff) | |
download | src-2fae4c3d9539022980a143fbc653cbaab696f5aa.tar.gz src-2fae4c3d9539022980a143fbc653cbaab696f5aa.zip |
Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.
Notes
Notes:
svn path=/head/; revision=230530
Diffstat (limited to 'bin/sh/arith_yacc.c')
-rw-r--r-- | bin/sh/arith_yacc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/arith_yacc.c b/bin/sh/arith_yacc.c index 48c63eac789c..fbf9a640c03b 100644 --- a/bin/sh/arith_yacc.c +++ b/bin/sh/arith_yacc.c @@ -84,6 +84,8 @@ static const char prec[ARITH_BINOP_MAX - ARITH_BINOP_MIN] = { #define ARITH_MAX_PREC 8 +int letcmd(int, char **); + static __dead2 void yyerror(const char *s) { error("arithmetic expression: %s: \"%s\"", s, arith_startbuf); @@ -377,4 +379,3 @@ letcmd(int argc, char **argv) out1fmt(ARITH_FORMAT_STR "\n", i); return !i; } - |