]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/blobdiff - tc/emp_ematch.y
ematch: fix warning about yyerror and const
[lisovros/iproute2_canprio.git] / 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);
  }