]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
ematch: fix warning about yyerror and const
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 3 Jan 2012 21:55:00 +0000 (13:55 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Tue, 3 Jan 2012 21:55:00 +0000 (13:55 -0800)
yyerror() should take const char * on current bison.

tc/emp_ematch.y

index e8d1671c22e68b0f291e360343e6d60449906a1e..7043a80ba287865400c097a9b076d200a17bbe36 100644 (file)
@@ -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);
  }