ematch: fix warning about yyerror and const

yyerror() should take const char * on current bison.
This commit is contained in:
Stephen Hemminger 2012-01-03 13:55:00 -08:00
parent f5b830dc5d
commit 5761f04fb8
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
%{ %{
extern int ematch_lex(void); extern int ematch_lex(void);
extern void yyerror(char *s); extern void yyerror(const char *s);
extern struct ematch *ematch_root; extern struct ematch *ematch_root;
extern char *ematch_err; extern char *ematch_err;
%} %}
@ -94,7 +94,7 @@ invert:
; ;
%% %%
void yyerror(char *s) void yyerror(const char *s)
{ {
ematch_err = strdup(s); ematch_err = strdup(s);
} }