From: Stephen Hemminger Date: Tue, 3 Jan 2012 21:55:00 +0000 (-0800) Subject: ematch: fix warning about yyerror and const X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lisovros/iproute2_canprio.git/commitdiff_plain/5761f04fb8f47db22464ad420dd1a99ed842d569?ds=sidebyside ematch: fix warning about yyerror and const yyerror() should take const char * on current bison. --- diff --git a/tc/emp_ematch.y b/tc/emp_ematch.y index e8d1671..7043a80 100644 --- a/tc/emp_ematch.y +++ b/tc/emp_ematch.y @@ -19,7 +19,7 @@ %{ extern int ematch_lex(void); - extern void yyerror(char *s); + extern void yyerror(const char *s); extern struct ematch *ematch_root; extern char *ematch_err; %} @@ -94,7 +94,7 @@ invert: ; %% - void yyerror(char *s) + void yyerror(const char *s) { ematch_err = strdup(s); }