summaryrefslogtreecommitdiff
path: root/libc/misc/error/error.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-05-04 14:44:13 +0000
committerMike Frysinger <vapier@gentoo.org>2006-05-04 14:44:13 +0000
commitc9234bbc4d1ba5a0ad97d5d38b57af1077c38305 (patch)
treeb066c42680cb72885ba3d469fecc2606030eea1b /libc/misc/error/error.c
parentf98cea07143a255bcbfea909fe5b87fcdaa987bc (diff)
use weak_alias() for data symbols, not strong_alias()
Diffstat (limited to 'libc/misc/error/error.c')
-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)