summaryrefslogtreecommitdiffstats
path: root/bin/sh/arith.y
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sh/arith.y')
-rw-r--r--bin/sh/arith.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/sh/arith.y b/bin/sh/arith.y
index 542fc44..133a1b8 100644
--- a/bin/sh/arith.y
+++ b/bin/sh/arith.y
@@ -265,7 +265,7 @@ expr:
#define YYPARSE_PARAM_TYPE arith_t *
#define YYPARSE_PARAM result
-char *arith_buf, *arith_startbuf;
+const char *arith_buf, *arith_startbuf;
int yylex(void);
int yyparse(YYPARSE_PARAM_TYPE);
@@ -284,7 +284,7 @@ arith_assign(char *name, arith_t value)
}
arith_t
-arith(char *s)
+arith(const char *s)
{
arith_t result;
@@ -299,7 +299,7 @@ arith(char *s)
}
static void
-yyerror(char *s)
+yyerror(const char *s)
{
yyerrok;
@@ -354,7 +354,7 @@ main(int argc, char *argv[])
printf("%d\n", exp(argv[1]));
}
-error(char *s)
+error(const char *s)
{
fprintf(stderr, "exp: %s\n", s);
exit(1);
OpenPOWER on IntegriCloud