summaryrefslogtreecommitdiff
path: root/libc/misc
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
parent2fec342738cefe71910e8e8ab8636accfc5867bc (diff)
Get rid of missing prototype warnings
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/error/error.c12
-rw-r--r--libc/misc/sysvipc/ipc.h4
2 files changed, 8 insertions, 8 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)
diff --git a/libc/misc/sysvipc/ipc.h b/libc/misc/sysvipc/ipc.h
index 071e55f44..ffc07daf9 100644
--- a/libc/misc/sysvipc/ipc.h
+++ b/libc/misc/sysvipc/ipc.h
@@ -12,8 +12,8 @@
#ifdef __NR_ipc
/* The actual system call: all functions are multiplexed by this. */
-extern int __syscall_ipc __P((unsigned int __call, int __first, int __second,
- int __third, void *__ptr)) attribute_hidden;
+extern int __syscall_ipc (unsigned int __call, int __first, int __second,
+ int __third, void *__ptr) attribute_hidden;
/* The codes for the functions to use the multiplexer `__syscall_ipc'. */