Changeset 7258c6a in buchla-68k for libcio/writern.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/writern.c
r0292fbb r7258c6a 22 22 #include "fspars.h" 23 23 24 extern long_berrno;25 extern int _seek(struct fcb *fcp);24 extern int32_t _berrno; 25 extern int16_t _seek(struct fcb *fcp); 26 26 27 27 #if DEBUGIT … … 30 30 31 31 #if TBUFFER 32 extern long _secwr(char *buf, short rec);32 extern int32_t _secwr(int8_t *buf, int16_t rec); 33 33 #endif 34 34 … … 44 44 */ 45 45 46 int WriteRN(struct fcb *fcp, char*buf)46 int16_t WriteRN(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 */ … … 86 86 /* write the sector */ 87 87 88 if (brc = BIOS(B_RDWR, 1, buf, 1, ( short)fcp->curdsn, 0)) {88 if (brc = BIOS(B_RDWR, 1, buf, 1, (int16_t)fcp->curdsn, 0)) { 89 89 90 90 #if DEBUGIT … … 99 99 100 100 #if TBUFFER 101 _secwr(buf, ( short)fcp->curdsn);101 _secwr(buf, (int16_t)fcp->curdsn); 102 102 #endif 103 103
Note:
See TracChangeset
for help on using the changeset viewer.