From 05e75260d6952308d7c865ff67c0e3678b7ba935 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 26 Jan 2006 22:04:19 +0000 Subject: Get rid of missing prototype warnings --- libc/misc/error/error.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libc/misc/error') diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index 4eda8defd..7e254ef1b 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -50,8 +50,8 @@ int error_one_per_line; function without parameters instead. */ void (*error_print_progname) (void) = NULL; - -attribute_hidden void __error (int status, int errnum, const char *message, ...) +extern __typeof(error) __error attribute_hidden; +void __error (int status, int errnum, const char *message, ...) { va_list args; @@ -69,7 +69,8 @@ attribute_hidden void __error (int status, int errnum, const char *message, ...) exit (status); } -attribute_hidden void __error_at_line (int status, int errnum, const char *file_name, +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, ...) { va_list args; @@ -105,7 +106,6 @@ attribute_hidden void __error_at_line (int status, int errnum, const char *file_ exit (status); } -#undef error -#undef error_at_line -strong_alias(__error,error) +/* psm: keep this weak, to many use this outside of libc */ +weak_alias(__error,error) strong_alias(__error_at_line,error_at_line) -- cgit v1.2.3