about summary refs log tree commit diff
path: root/src/stdio
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-05-01 20:12:51 -0400
committerRich Felker <dalias@aerifal.cx>2011-05-01 20:12:51 -0400
commitd02c50d6a34ff28db2486fbeac86e513286d52e9 (patch)
treed121c266822d2e8732d3b0a6ebc08a7297447cb2 /src/stdio
parent1477a3be62746765d7f93c4c7b0f7948a1541fd3 (diff)
downloadmusl-d02c50d6a34ff28db2486fbeac86e513286d52e9.tar.gz
musl-d02c50d6a34ff28db2486fbeac86e513286d52e9.tar.xz
musl-d02c50d6a34ff28db2486fbeac86e513286d52e9.zip
minor optimization in puts: use inline putc_unlocked macro for newline
Diffstat (limited to 'src/stdio')
-rw-r--r--src/stdio/puts.c2
1 files changed, 1 insertions, 1 deletions
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;
 }