Changeset 8973acd in buchla-68k for libcio/getc.c
- Timestamp:
- 07/15/2017 03:12:10 PM (7 years ago)
- Branches:
- master
- Children:
- ea232f9
- Parents:
- 7d0d347
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/getc.c
r7d0d347 r8973acd 17 17 return(EOF); 18 18 19 ptr->_flags &= ~_DIRTY;/* reset the dirty buffer bit */19 ptr->_flags = (uint8_t)(ptr->_flags & ~_DIRTY); /* reset the dirty buffer bit */ 20 20 21 21 if (ptr->_buff EQ NULL) /* get a buffer if none exists */ … … 24 24 if ((len = read(ptr->_unit, ptr->_buff, ptr->_buflen)) LE 0) { 25 25 26 ptr->_flags |= ((len EQ 0) ? _EOF : _IOERR);26 ptr->_flags = (uint8_t)(ptr->_flags | ((len EQ 0) ? _EOF : _IOERR)); 27 27 return(EOF); 28 28 }
Note:
See TracChangeset
for help on using the changeset viewer.