Code

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 f0e886cc1a1e28ab5f1c277eb830c54896410d59..803eec26205317b30c21425c9c2821a4f75321fe 100644 (file)
@@ -225,7 +225,7 @@ entire_file:
 %%
 static int yyerror (const char *s)
 {
-       char *text;
+       const char *text;
 
        if (*yytext == '\n')
                text = "<newline>";