summaryrefslogtreecommitdiffstats
path: root/bin/sh/arith_yacc.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2012-01-25 08:42:19 +0000
committercharnier <charnier@FreeBSD.org>2012-01-25 08:42:19 +0000
commit11c560ec5e9b4b4c1e625e3f949adc3e5f025826 (patch)
tree87e53751614cd8153750969022f9e8aa01d069bc /bin/sh/arith_yacc.c
parent213e9c871367df9e4445a15b23c0d8943da17a77 (diff)
downloadFreeBSD-src-11c560ec5e9b4b4c1e625e3f949adc3e5f025826.zip
FreeBSD-src-11c560ec5e9b4b4c1e625e3f949adc3e5f025826.tar.gz
Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.
Diffstat (limited to 'bin/sh/arith_yacc.c')
-rw-r--r--bin/sh/arith_yacc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/arith_yacc.c b/bin/sh/arith_yacc.c
index 48c63ea..fbf9a64 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;
}
-
OpenPOWER on IntegriCloud