summaryrefslogtreecommitdiff
path: root/libc/misc/error
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-26 22:04:19 +0000
commit05e75260d6952308d7c865ff67c0e3678b7ba935 (patch)
treeac1a5d0ab7904783917b52ffa5489e8367743ff7 /libc/misc/error
parent2fec342738cefe71910e8e8ab8636accfc5867bc (diff)
Get rid of missing prototype warnings
Diffstat (limited to 'libc/misc/error')
-rw-r--r--libc/misc/error/error.c12
1 files changed, 6 insertions, 6 deletions
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)