diff options
Diffstat (limited to 'newlib/libc/machine/powerpc')
-rw-r--r-- | newlib/libc/machine/powerpc/vfprintf.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vfscanf.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/machine/powerpc/vfprintf.c b/newlib/libc/machine/powerpc/vfprintf.c index b80c58c65..8aadb4b15 100644 --- a/newlib/libc/machine/powerpc/vfprintf.c +++ b/newlib/libc/machine/powerpc/vfprintf.c @@ -239,7 +239,6 @@ __sbprintf(fp, fmt, ap) unsigned char buf[BUFSIZ]; /* copy the important variables */ - fake._data = fp->_data; fake._flags = fp->_flags & ~__SNBF; fake._file = fp->_file; fake._cookie = fp->_cookie; @@ -322,6 +321,7 @@ _DEFUN (VFPRINTF, (fp, fmt0, ap), _CONST char *fmt0 _AND va_list ap) { + CHECK_INIT (_REENT); return _VFPRINTF_R (_REENT, fp, fmt0, ap); } diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c index 052bbad67..47b0d1c61 100644 --- a/newlib/libc/machine/powerpc/vfscanf.c +++ b/newlib/libc/machine/powerpc/vfscanf.c @@ -224,8 +224,8 @@ _DEFUN (vfscanf, (fp, fmt, ap), _CONST char *fmt _AND va_list ap) { - CHECK_INIT(fp); - return __svfscanf_r (fp->_data, fp, fmt, ap); + CHECK_INIT(_REENT); + return __svfscanf_r (_REENT, fp, fmt, ap); } int |