summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/bison_nr_parser.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bison_nr_parser.y b/tests/bison_nr_parser.y
index 2cbf9aa..01c5dfe 100644
--- a/tests/bison_nr_parser.y
+++ b/tests/bison_nr_parser.y
@@ -35,7 +35,7 @@
/* #define YYPARSE_PARAM scanner */
/* #define YYLEX_PARAM scanner */
-int yyerror(char* msg);
+int yyerror(const char* msg);
extern int testget_lineno(void);
@@ -89,7 +89,7 @@ line:
%%
-int yyerror(char* msg) {
+int yyerror(const char* msg) {
fprintf(stderr,"%s\n",msg);
return 0;
}