* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
This commit is contained in:
parent
10c64dd4da
commit
5dad9defd0
|
@ -1,3 +1,7 @@
|
|||
2013-07-09 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
* libc/stdio/fwalk.c (_fwalk): Remove redundant test.
|
||||
|
||||
2013-07-05 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||
|
||||
* libc/include/sys/types.h (u_char): Add redefinition guard.
|
||||
|
|
|
@ -46,11 +46,8 @@ _DEFUN(_fwalk, (ptr, function),
|
|||
*/
|
||||
for (g = &ptr->__sglue; g != NULL; g = g->_next)
|
||||
for (fp = g->_iobs, n = g->_niobs; --n >= 0; fp++)
|
||||
if (fp->_flags != 0)
|
||||
{
|
||||
if (fp->_flags != 0 && fp->_flags != 1 && fp->_file != -1)
|
||||
ret |= (*function) (fp);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue