aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/putc.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/putc.c')
-rw-r--r--newlib/libc/stdio/putc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c
index b3008e2..667324d 100644
--- a/newlib/libc/stdio/putc.c
+++ b/newlib/libc/stdio/putc.c
@@ -96,7 +96,7 @@ _DEFUN(_putc_r, (ptr, c, fp),
register FILE *fp)
{
int result;
- CHECK_INIT (ptr);
+ CHECK_INIT (ptr, fp);
_flockfile (fp);
result = __sputc_r (ptr, c, fp);
_funlockfile (fp);
@@ -111,7 +111,7 @@ _DEFUN(putc, (c, fp),
{
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
int result;
- CHECK_INIT (_REENT);
+ CHECK_INIT (_REENT, fp);
_flockfile (fp);
result = __sputc_r (_REENT, c, fp);
_funlockfile (fp);