From 27cfef649da3b51dd37f63a15797f7ba26bd2d95 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 8 May 2011 00:01:29 +0200 Subject: error.c: no need for __error and __error_at_line Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/error/error.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'libc/misc') diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index a30a4decf..26bcfd429 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -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) -- cgit v1.2.3