parser.y: mark text as const
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 13:37:40 +0000 (14:37 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 13:37:40 +0000 (14:37 +0100)
src/liboconfig/parser.y

index f0e886c..803eec2 100644 (file)
@@ -225,7 +225,7 @@ entire_file:
 %%
 static int yyerror (const char *s)
 {
-       char *text;
+       const char *text;
 
        if (*yytext == '\n')
                text = "<newline>";