mirror of
https://git.busybox.net/uClibc
synced 2025-05-09 15:22:16 +08:00
error.c: no need for __error and __error_at_line
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
parent
22f96153c2
commit
27cfef649d
@ -37,8 +37,7 @@ int error_one_per_line;
|
||||
function without parameters instead. */
|
||||
void (*error_print_progname) (void) = NULL;
|
||||
|
||||
extern __typeof(error) __error attribute_hidden;
|
||||
void __error (int status, int errnum, const char *message, ...)
|
||||
void error (int status, int errnum, const char *message, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
@ -60,11 +59,9 @@ void __error (int status, int errnum, const char *message, ...)
|
||||
if (status)
|
||||
exit (status);
|
||||
}
|
||||
weak_alias(__error,error)
|
||||
|
||||
extern __typeof(error_at_line) __error_at_line attribute_hidden;
|
||||
void __error_at_line (int status, int errnum, const char *file_name,
|
||||
unsigned int line_number, const char *message, ...)
|
||||
void error_at_line (int status, int errnum, const char *file_name,
|
||||
unsigned int line_number, const char *message, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
@ -103,4 +100,3 @@ void __error_at_line (int status, int errnum, const char *file_name,
|
||||
if (status)
|
||||
exit (status);
|
||||
}
|
||||
weak_alias(__error_at_line,error_at_line)
|
||||
|
Loading…
x
Reference in New Issue
Block a user