minor optimization in puts: use inline putc_unlocked macro for newline
This commit is contained in:
parent
1477a3be62
commit
d02c50d6a3
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ int puts(const char *s)
|
||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
FLOCK(stdout);
|
FLOCK(stdout);
|
||||||
r = -(fputs(s, stdout) < 0 || putchar('\n') < 0);
|
r = -(fputs(s, stdout) < 0 || putc_unlocked('\n', stdout) < 0);
|
||||||
FUNLOCK(stdout);
|
FUNLOCK(stdout);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue