summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/fwscanf.c
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-07-15 08:04:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-07-15 08:04:17 +0000
commitc842ff73e769b4c35007c866778be0b3840160fe (patch)
treef74608191682e08dcdf4f901356799b63f8ceb94 /newlib/libc/stdio/fwscanf.c
parent27a249f5138001eeaf232580235d83ef956cfc76 (diff)
downloadcygnal-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/fwscanf.c')
-rw-r--r--newlib/libc/stdio/fwscanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/fwscanf.c b/newlib/libc/stdio/fwscanf.c
index 8d5236edc..f013cb8f9 100644
--- a/newlib/libc/stdio/fwscanf.c
+++ b/newlib/libc/stdio/fwscanf.c
@@ -31,7 +31,7 @@ fwscanf (FILE *fp, _CONST wchar_t *fmt, ...)
va_list ap;
va_start (ap, fmt);
- ret = __svfwscanf_r (_REENT, fp, fmt, ap);
+ ret = _vfwscanf_r (_REENT, fp, fmt, ap);
va_end (ap);
return ret;
}
@@ -45,7 +45,7 @@ _fwscanf_r (struct _reent *ptr, FILE *fp, _CONST wchar_t *fmt, ...)
va_list ap;
va_start (ap, fmt);
- ret = __svfwscanf_r (ptr, fp, fmt, ap);
+ ret = _vfwscanf_r (ptr, fp, fmt, ap);
va_end (ap);
return (ret);
}