From 5761f04fb8f47db22464ad420dd1a99ed842d569 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 3 Jan 2012 13:55:00 -0800 Subject: [PATCH] ematch: fix warning about yyerror and const yyerror() should take const char * on current bison. --- tc/emp_ematch.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tc/emp_ematch.y b/tc/emp_ematch.y index e8d1671..7043a80 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); } -- 2.39.2