Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/putchar.c')
-rw-r--r--newlib/libc/stdio/putchar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/newlib/libc/stdio/putchar.c b/newlib/libc/stdio/putchar.c
index 06bcbb46e..bb27dc4e6 100644
--- a/newlib/libc/stdio/putchar.c
+++ b/newlib/libc/stdio/putchar.c
@@ -90,8 +90,10 @@ int
_DEFUN(putchar, (c),
int c)
{
- _REENT_SMALL_CHECK_INIT (_REENT);
- return _putc_r (_REENT, c, _stdout_r (_REENT));
+ struct _reent *reent = _REENT;
+
+ _REENT_SMALL_CHECK_INIT (reent);
+ return _putc_r (reent, c, _stdout_r (reent));
}
#endif