mirror of
https://github.com/fluencelabs/musl
synced 2025-06-24 20:21:59 +00:00
minor optimization in puts: use inline putc_unlocked macro for newline
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user