summaryrefslogtreecommitdiff
path: root/userland/libc/stdio/fputc.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/stdio/fputc.c')
-rw-r--r--userland/libc/stdio/fputc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/userland/libc/stdio/fputc.c b/userland/libc/stdio/fputc.c
index 7c8fa7c..c41ffa4 100644
--- a/userland/libc/stdio/fputc.c
+++ b/userland/libc/stdio/fputc.c
@@ -1,7 +1,8 @@
#include <stdio.h>
int fputc(int c, FILE *stream) {
- if (fwrite(&c, 1, 1, stream) > 0)
+ if (fwrite(&c, 1, 1, stream) > 0) {
return c;
+ }
return EOF;
}