From 14773e10a01ea162bb305975a4d439c52a620876 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 24 Nov 2008 17:15:43 +0000 Subject: * libc/include/stdio.h (__SMOD): Remove definition of unused flag. * libc/include/sys/reent.h (struct __sFILE): Add _flags2 member. * libc/stdio/findfp.c (std): Initialize _flags2. (__sfp): Ditto. * libc/stdio/refill.c (__srefill_r): Drop resetting __SMOD flag. * libc/stdio/vfscanf.c (__ssrefill_r): Ditto. * libc/stdio/fseek.c (_fseek_r): Drop checking __SMOD flag. * libc/stdio64/fseeko64.c (_fseeko64_r): Ditto. --- newlib/libc/stdio/refill.c | 1 - 1 file changed, 1 deletion(-) (limited to 'newlib/libc/stdio/refill.c') diff --git a/newlib/libc/stdio/refill.c b/newlib/libc/stdio/refill.c index 6b329a852..9e76e668a 100644 --- a/newlib/libc/stdio/refill.c +++ b/newlib/libc/stdio/refill.c @@ -105,7 +105,6 @@ _DEFUN(__srefill_r, (ptr, fp), _CAST_VOID _fwalk (_GLOBAL_REENT, lflush); fp->_p = fp->_bf._base; fp->_r = fp->_read (ptr, fp->_cookie, (char *) fp->_p, fp->_bf._size); - fp->_flags &= ~__SMOD; /* buffer contents are again pristine */ #ifndef __CYGWIN__ if (fp->_r <= 0) #else -- cgit v1.2.3