Changeset 7258c6a in buchla-68k for libcio/readrn.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/readrn.c
r0292fbb r7258c6a 27 27 28 28 #if TBUFFER 29 extern long _secrd(char *buf, short rec);29 extern int32_t _secrd(int8_t *buf, int16_t rec); 30 30 #endif 31 31 32 extern long_berrno;33 extern int _seek(struct fcb *fcp);32 extern int32_t _berrno; 33 extern int16_t _seek(struct fcb *fcp); 34 34 35 35 /* … … 44 44 */ 45 45 46 int ReadRN(struct fcb *fcp, char*buf)46 int16_t ReadRN(struct fcb *fcp, int8_t *buf) 47 47 { 48 int sv; /* seek return code */49 longbrc; /* bios return code */48 int16_t sv; /* seek return code */ 49 int32_t brc; /* bios return code */ 50 50 51 51 if (sv = _seek(fcp)) /* try to find the sector we want */ … … 68 68 69 69 #if TBUFFER 70 if (brc = _secrd(buf, ( short)fcp->curdsn)) {70 if (brc = _secrd(buf, (int16_t)fcp->curdsn)) { 71 71 #else 72 72 if (brc = BIOS(B_RDWR, 0, buf, 1, (short)fcp->curdsn, 0)) {
Note:
See TracChangeset
for help on using the changeset viewer.