From 58c3cf673318f23cfffd23a2b69f355e030abd80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 14 Apr 2008 21:50:11 +0000 Subject: [PATCH] Rename yyerror to sel_yyerror and make it static. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22965 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/sel-lex.l | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/hx509/sel-lex.l b/lib/hx509/sel-lex.l index ce3ea9913..dc3999c09 100644 --- a/lib/hx509/sel-lex.l +++ b/lib/hx509/sel-lex.l @@ -47,10 +47,12 @@ unsigned lineno = 1; static char * handle_string(void); static int lex_input(char *, int); static void error_message (const char *format, ...); -void yyerror (char *); +static void sel_yyerror (char *); struct hx_expr_input _hx509_expr_input; +#define yyerror(msg) sel_yyerror(msg ) + #define YY_NO_UNPUT 1 #undef YY_INPUT @@ -91,8 +93,8 @@ error_message (const char *format, ...) va_end (args); } -void -yyerror (char *s) +static void +sel_yyerror (char *s) { error_message("%s", s); }