From: Stephen Hemminger Date: Tue, 3 Jan 2012 21:55:00 +0000 (-0800) Subject: ematch: fix warning about yyerror and const X-Git-Tag: v3.2.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5761f04fb8f47db22464ad420dd1a99ed842d569;p=thirdparty%2Fiproute2.git 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 e8d1671c2..7043a80ba 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); }