summaryrefslogtreecommitdiff
path: root/libc/misc/error
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/error')
-rw-r--r--libc/misc/error/error.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c
index bad1843e6..08044ac83 100644
--- a/libc/misc/error/error.c
+++ b/libc/misc/error/error.c
@@ -64,6 +64,7 @@ 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,
@@ -101,7 +102,4 @@ void __error_at_line (int status, int errnum, const char *file_name,
if (status)
exit (status);
}
-
-/* psm: keep this weak, too many use this in common code */
-weak_alias(__error,error)
-strong_alias(__error_at_line,error_at_line)
+weak_alias(__error_at_line,error_at_line)