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/strchr.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libc/string/generic/strchr.c') diff --git a/libc/string/generic/strchr.c b/libc/string/generic/strchr.c index d0745060b..06476d448 100644 --- a/libc/string/generic/strchr.c +++ b/libc/string/generic/strchr.c @@ -29,8 +29,7 @@ #undef strchr /* Find the first occurrence of C in S. */ -char * -strchr (s, c_in) +char attribute_hidden *__strchr (s, c_in) const char *s; int c_in; { @@ -184,7 +183,6 @@ strchr (s, c_in) return NULL; } -#ifdef weak_alias -#undef index -weak_alias (strchr, index) -#endif +strong_alias(__strchr, strchr) + +weak_alias(strchr, index) -- cgit v1.2.3