summary refs log tree commit diff
path: root/src/arith.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/arith.y')
-rw-r--r--src/arith.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arith.y b/src/arith.y
index 35d012d..63a5692 100644
--- a/src/arith.y
+++ b/src/arith.y
@@ -61,7 +61,7 @@ int yyparse(void);
 void yyerror(const char *);
 #ifdef TESTARITH
 int main(int , char *[]);
-int error(char *);
+int sh_error(char *);
 #endif
 
 %}
@@ -145,7 +145,7 @@ main(argc, argv)
 {
 	printf("%d\n", exp(argv[1]));
 }
-error(s)
+sh_error(s)
 	char *s;
 {
 	fprintf(stderr, "exp: %s\n", s);
@@ -163,6 +163,6 @@ yyerror(s)
 #endif
 	yyclearin;
 	arith_lex_reset();	/* reprime lex */
-	error("arithmetic expression: %s: \"%s\"", s, arith_startbuf);
+	sh_error("arithmetic expression: %s: \"%s\"", s, arith_startbuf);
 	/* NOTREACHED */
 }