diff options
Diffstat (limited to 'libio/iofgetws.c')
-rw-r--r-- | libio/iofgetws.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libio/iofgetws.c b/libio/iofgetws.c index 0e2d515..292a161 100644 --- a/libio/iofgetws.c +++ b/libio/iofgetws.c @@ -48,8 +48,8 @@ fgetws (wchar_t *buf, int n, FILE *fp) /* This is very tricky since a file descriptor may be in the non-blocking mode. The error flag doesn't mean much in this case. We return an error only when there is a new error. */ - old_error = fp->_IO_file_flags & _IO_ERR_SEEN; - fp->_IO_file_flags &= ~_IO_ERR_SEEN; + old_error = fp->_flags & _IO_ERR_SEEN; + fp->_flags &= ~_IO_ERR_SEEN; count = _IO_getwline (fp, buf, n - 1, L'\n', 1); /* If we read in some bytes and errno is EAGAIN, that error will be reported for next read. */ @@ -60,7 +60,7 @@ fgetws (wchar_t *buf, int n, FILE *fp) buf[count] = '\0'; result = buf; } - fp->_IO_file_flags |= old_error; + fp->_flags |= old_error; _IO_release_lock (fp); return result; } |