From: Ruben Kerkhof Date: Sat, 5 Mar 2016 13:37:40 +0000 (+0100) Subject: parser.y: mark text as const X-Git-Tag: collectd-5.6.0~422 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=af512f0e603c15ced6b4f70db3dd0c2200b4a094;p=collectd.git parser.y: mark text as const --- diff --git a/src/liboconfig/parser.y b/src/liboconfig/parser.y index f0e886cc..803eec26 100644 --- a/src/liboconfig/parser.y +++ b/src/liboconfig/parser.y @@ -225,7 +225,7 @@ entire_file: %% static int yyerror (const char *s) { - char *text; + const char *text; if (*yytext == '\n') text = "";