diff options
Diffstat (limited to 'newlib/libc/stdio/scanf.c')
-rw-r--r-- | newlib/libc/stdio/scanf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/newlib/libc/stdio/scanf.c b/newlib/libc/stdio/scanf.c index 0a48189..5dd14fd 100644 --- a/newlib/libc/stdio/scanf.c +++ b/newlib/libc/stdio/scanf.c @@ -25,6 +25,8 @@ #include <varargs.h> #endif +#include "local.h" + #ifndef _REENT_ONLY int @@ -44,12 +46,12 @@ scanf (fmt, va_alist) #else va_start (ap); #endif - ret = __svfscanf (_stdin_r (_REENT), fmt, ap); + ret = __svfscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); va_end (ap); return ret; } -#endif +#endif /* !_REENT_ONLY */ int #ifdef _HAVE_STDC @@ -69,7 +71,9 @@ _scanf_r (ptr, fmt, va_alist) #else va_start (ap); #endif - ret = __svfscanf (_stdin_r (ptr), fmt, ap); + ret = __svfscanf_r (ptr, _stdin_r (ptr), fmt, ap); va_end (ap); return (ret); } + + |