summaryrefslogtreecommitdiffstats
path: root/libc/string/generic/strchr.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-11-14 22:57:45 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-11-14 22:57:45 +0000
commitf8703c6453b64fd74354a0851f6fb05795c31956 (patch)
tree252885111008043b1682496df58e46cbcd93d480 /libc/string/generic/strchr.c
parent032a3e76d290c776e26ae6c0a68e8b19885a68aa (diff)
downloaduClibc-alpine-f8703c6453b64fd74354a0851f6fb05795c31956.tar.bz2
uClibc-alpine-f8703c6453b64fd74354a0851f6fb05795c31956.tar.xz
Move to use attribute_hidden
Diffstat (limited to 'libc/string/generic/strchr.c')
-rw-r--r--libc/string/generic/strchr.c10
1 files changed, 4 insertions, 6 deletions
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)