From d482ef60da96645599b808bb74fe014e1ab4671e Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 16 Dec 2005 00:38:38 +0000 Subject: Get rid of warnings, use internals, create new hidden versions --- libc/stdio/fgets.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libc/stdio/fgets.c') diff --git a/libc/stdio/fgets.c b/libc/stdio/fgets.c index 52c856f35..5baf63a58 100644 --- a/libc/stdio/fgets.c +++ b/libc/stdio/fgets.c @@ -58,15 +58,16 @@ char attribute_hidden *__fgets_unlocked(char *__restrict s, int n, return NULL; } -weak_alias(__fgets_unlocked,fgets_unlocked); +weak_alias(__fgets_unlocked,fgets_unlocked) #ifndef __UCLIBC_HAS_THREADS__ -weak_alias(__fgets_unlocked,fgets); +hidden_strong_alias(__fgets_unlocked,__fgets) +weak_alias(__fgets_unlocked,fgets) #endif #elif defined __UCLIBC_HAS_THREADS__ -char *fgets(char *__restrict s, int n, +char attribute_hidden *__fgets(char *__restrict s, int n, register FILE * __restrict stream) { char *retval; @@ -80,5 +81,6 @@ char *fgets(char *__restrict s, int n, return retval; } +strong_alias(__fgets,fgets) #endif -- cgit v1.2.3