Commit 5761f04f authored by Stephen Hemminger's avatar Stephen Hemminger

ematch: fix warning about yyerror and const

yyerror() should take const char * on current bison.
parent f5b830dc
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment