summaryrefslogtreecommitdiffstats
path: root/tc/emp_ematch.y
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-01-03 13:55:00 -0800
committerStephen Hemminger <shemminger@vyatta.com>2012-01-03 13:55:00 -0800
commit5761f04fb8f47db22464ad420dd1a99ed842d569 (patch)
tree9636f2bf148989bc742d653ebdb90d2b01d9d410 /tc/emp_ematch.y
parentf5b830dc5dab07149157eb007de9a858a57e880b (diff)
ematch: fix warning about yyerror and const
yyerror() should take const char * on current bison.
Diffstat (limited to 'tc/emp_ematch.y')
-rw-r--r--tc/emp_ematch.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/tc/emp_ematch.y b/tc/emp_ematch.y
index e8d1671c..7043a80b 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);
}