diff options
Diffstat (limited to 'source4/heimdal/lib/asn1/lex.l')
-rw-r--r-- | source4/heimdal/lib/asn1/lex.l | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/heimdal/lib/asn1/lex.l b/source4/heimdal/lib/asn1/lex.l index 7bd442bc50..d5be97538f 100644 --- a/source4/heimdal/lib/asn1/lex.l +++ b/source4/heimdal/lib/asn1/lex.l @@ -50,6 +50,8 @@ #include "lex.h" #include "gen_locl.h" +static void lex_err_message (const char *format, ...); + static unsigned lineno = 1; #undef ECHO @@ -258,7 +260,7 @@ WITH { return kw_WITH; } yylval.constant = strtol((const char *)yytext, &e, 0); if(e == y) - error_message("malformed constant (%s)", yytext); + lex_err_message("malformed constant (%s)", yytext); else return NUMBER; } @@ -270,7 +272,7 @@ WITH { return kw_WITH; } \n { ++lineno; } \.\.\. { return ELLIPSIS; } \.\. { return RANGE; } -. { error_message("Ignoring char(%c)\n", *yytext); } +. { lex_err_message("Ignoring char(%c)\n", *yytext); } %% #ifndef yywrap /* XXX */ @@ -281,8 +283,8 @@ yywrap () } #endif -void -error_message (const char *format, ...) +static void +lex_err_message (const char *format, ...) { va_list args; @@ -296,5 +298,5 @@ error_message (const char *format, ...) static void unterminated(const char *type, unsigned start_lineno) { - error_message("unterminated %s, possibly started on line %d\n", type, start_lineno); + lex_err_message("unterminated %s, possibly started on line %d\n", type, start_lineno); } |