diff options
Diffstat (limited to 'newlib/libc/stdio/wscanf.c')
-rw-r--r-- | newlib/libc/stdio/wscanf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/stdio/wscanf.c b/newlib/libc/stdio/wscanf.c index abe8dc07a..9fee3c176 100644 --- a/newlib/libc/stdio/wscanf.c +++ b/newlib/libc/stdio/wscanf.c @@ -29,10 +29,11 @@ wscanf(_CONST wchar_t *fmt, ...) { int ret; va_list ap; + struct _reent *reent = _REENT; - _REENT_SMALL_CHECK_INIT (_REENT); + _REENT_SMALL_CHECK_INIT (reent); va_start (ap, fmt); - ret = _vfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); + ret = _vfwscanf_r (reent, _stdin_r (reent), fmt, ap); va_end (ap); return ret; } |