lib/com_err only use error_message for the exported libcom_err

This avoids using the same function name in compile_et internally

Andrew Bartlett

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Andrew Bartlett
2011-01-25 18:27:12 -08:00
committed by Love Hornquist Astrand
parent 5ff461d0af
commit 995d305f8c
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@
/* $Id$ */
void error_message (const char *, ...)
void _lex_error_message (const char *, ...)
__attribute__ ((format (printf, 1, 2)));
int yylex(void);

View File

@@ -95,7 +95,7 @@ getstring(void)
continue;
}
if(c == '\n'){
error_message("unterminated string");
_lex_error_message("unterminated string");
lineno++;
break;
}
@@ -115,7 +115,7 @@ getstring(void)
}
void
error_message (const char *format, ...)
_lex_error_message (const char *format, ...)
{
va_list args;

View File

@@ -170,5 +170,5 @@ name2number(const char *str)
void
yyerror (char *s)
{
error_message ("%s\n", s);
_lex_error_message ("%s\n", s);
}