From f8703c6453b64fd74354a0851f6fb05795c31956 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Mon, 14 Nov 2005 22:57:45 +0000 Subject: Move to use attribute_hidden --- libc/string/generic/strrchr.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libc/string/generic/strrchr.c') diff --git a/libc/string/generic/strrchr.c b/libc/string/generic/strrchr.c index 8f815e9ff..bde4d4da0 100644 --- a/libc/string/generic/strrchr.c +++ b/libc/string/generic/strrchr.c @@ -21,8 +21,7 @@ #undef strrchr /* Find the last occurrence of C in S. */ -char * -strrchr (const char *s, int c) +char attribute_hidden *__strrchr (const char *s, int c) { register const char *found, *p; @@ -43,7 +42,6 @@ strrchr (const char *s, int c) return (char *) found; } -#ifdef weak_alias -#undef rindex +strong_alias(__strrchr, strrchr) + weak_alias (strrchr, rindex) -#endif -- cgit v1.2.3