summaryrefslogtreecommitdiff
path: root/libc/string/generic/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/generic/strrchr.c')
-rw-r--r--libc/string/generic/strrchr.c8
1 files changed, 3 insertions, 5 deletions
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