diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-07-15 08:04:17 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-07-15 08:04:17 +0000 |
commit | c842ff73e769b4c35007c866778be0b3840160fe (patch) | |
tree | f74608191682e08dcdf4f901356799b63f8ceb94 /newlib/libc/stdio/wscanf.c | |
parent | 27a249f5138001eeaf232580235d83ef956cfc76 (diff) | |
download | cygnal-c842ff73e769b4c35007c866778be0b3840160fe.tar.gz cygnal-c842ff73e769b4c35007c866778be0b3840160fe.tar.bz2 cygnal-c842ff73e769b4c35007c866778be0b3840160fe.zip |
* libc/stdio/fscanf.c (fscanf): Call _vfscanf_r instead of __svfscanf_r
to make sure CHECK_INIT is called.
(_fscanf_r): Ditto.
* /libc/stdio/scanf.c (scanf): Ditto.
(_scanf_r): Ditto.
* libc/stdio/fwscanf.c (fwscanf): Call _vfwscanf_r instead of
__svfwscanf_r to make sure CHECK_INIT is called.
(_fwscanf_r): Ditto.
* libc/stdio/wscanf.c (wscanf): Ditto.
(_wscanf_r): Ditto.
Diffstat (limited to 'newlib/libc/stdio/wscanf.c')
-rw-r--r-- | newlib/libc/stdio/wscanf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/wscanf.c b/newlib/libc/stdio/wscanf.c index 671727425..abe8dc07a 100644 --- a/newlib/libc/stdio/wscanf.c +++ b/newlib/libc/stdio/wscanf.c @@ -32,7 +32,7 @@ wscanf(_CONST wchar_t *fmt, ...) _REENT_SMALL_CHECK_INIT (_REENT); va_start (ap, fmt); - ret = __svfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); + ret = _vfwscanf_r (_REENT, _stdin_r (_REENT), fmt, ap); va_end (ap); return ret; } @@ -47,7 +47,7 @@ _wscanf_r(struct _reent *ptr, _CONST wchar_t *fmt, ...) _REENT_SMALL_CHECK_INIT (ptr); va_start (ap, fmt); - ret = __svfwscanf_r (ptr, _stdin_r (ptr), fmt, ap); + ret = _vfwscanf_r (ptr, _stdin_r (ptr), fmt, ap); va_end (ap); return (ret); } |