diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-05-08 00:01:29 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:43 +0200 |
commit | 27cfef649da3b51dd37f63a15797f7ba26bd2d95 (patch) | |
tree | 7d17d0ac2af4660fb29ab68ba112d17c76b9a4ff /libc | |
parent | 22f96153c2c2cb0ce03f5d36472da2762290711f (diff) |
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>
Diffstat (limited to 'libc')
-rw-r--r-- | libc/misc/error/error.c | 10 |
1 files changed, 3 insertions, 7 deletions
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) |