From: Rich Felker Date: Mon, 2 May 2011 00:12:51 +0000 (-0400) Subject: minor optimization in puts: use inline putc_unlocked macro for newline X-Git-Tag: v0.7.10~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d02c50d6a34ff28db2486fbeac86e513286d52e9;p=oweals%2Fmusl.git minor optimization in puts: use inline putc_unlocked macro for newline --- diff --git a/src/stdio/puts.c b/src/stdio/puts.c index 4c0e583c..5a38a49b 100644 --- a/src/stdio/puts.c +++ b/src/stdio/puts.c @@ -4,7 +4,7 @@ int puts(const char *s) { int r; FLOCK(stdout); - r = -(fputs(s, stdout) < 0 || putchar('\n') < 0); + r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0); FUNLOCK(stdout); return r; }