summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/read_config_yy.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/read_config_yy.y b/src/read_config_yy.y
index f06c6af..be927c0 100644
--- a/src/read_config_yy.y
+++ b/src/read_config_yy.y
@@ -47,7 +47,7 @@ extern char *yytext;
extern int yylineno;
int yylex (void);
-int yyerror (char *msg);
+int yyerror (const char *msg);
void yyrestart (FILE *input_file);
struct ct_conf conf;
@@ -1681,7 +1681,7 @@ helper_policy_expect_timeout: T_HELPER_EXPECT_TIMEOUT T_NUMBER
%%
int __attribute__((noreturn))
-yyerror(char *msg)
+yyerror(const char *msg)
{
dlog(LOG_ERR, "parsing config file in line (%d), symbol '%s': %s",
yylineno, yytext, msg);