summaryrefslogtreecommitdiff
path: root/libc/stdio/puts.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/puts.c')
-rw-r--r--libc/stdio/puts.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libc/stdio/puts.c b/libc/stdio/puts.c
index 37ae243bf..3a510325b 100644
--- a/libc/stdio/puts.c
+++ b/libc/stdio/puts.c
@@ -5,8 +5,6 @@
* Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
*/
-#define __fputc_unlocked __libc_fputc_unlocked
-
#include "_stdio.h"
int puts(register const char * __restrict s)
@@ -24,7 +22,7 @@ int puts(register const char * __restrict s)
/* Note: Nonportable as fputs need only return nonnegative on success. */
if ((n = __fputs_unlocked(s, stream)) != EOF) {
++n;
- if (__fputc_unlocked('\n', stream) == EOF) {
+ if (__fputc_unlocked_internal('\n', stream) == EOF) {
n = EOF;
}
}