diff options
Diffstat (limited to 'newlib/libc/stdio/putc.c')
-rw-r--r-- | newlib/libc/stdio/putc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c index 1115bf40d..2b1fd1bf3 100644 --- a/newlib/libc/stdio/putc.c +++ b/newlib/libc/stdio/putc.c @@ -111,9 +111,11 @@ _DEFUN(putc, (c, fp), { #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) int result; - CHECK_INIT (_REENT, fp); + struct _reent *reent = _REENT; + + CHECK_INIT (reent, fp); _newlib_flockfile_start (fp); - result = __sputc_r (_REENT, c, fp); + result = __sputc_r (reent, c, fp); _newlib_flockfile_end (fp); return result; #else |