Skip to content

Commit f8ae474

Browse files
[libc] use return from putchar for fputc
1 parent a89abd4 commit f8ae474

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libc/fputc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ int __attribute__((weak)) fputc(int c, FILE *stream)
1111
}
1212
else if (stream == stdout || stream == stderr)
1313
{
14-
putchar(c);
15-
ret = c;
14+
ret = putchar(c);
1615
}
1716
else
1817
{

0 commit comments

Comments
 (0)