Changeset 0c06bc5 in buchla-68k for libcio/filesys.c
- Timestamp:
- 07/16/2017 11:45:11 AM (7 years ago)
- Branches:
- master
- Children:
- f261cc8
- Parents:
- 1d174fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/filesys.c
r1d174fb r0c06bc5 82 82 */ 83 83 84 int 32_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat)84 int16_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat) 85 85 { 86 86 int16_t fatsec; 87 87 88 88 fatsec = nfat ? bpp->fatrec : (bpp->fatrec - bpp->fsiz); 89 return( BIOS(B_RDWR, 0, bufad, bpp->fsiz, fatsec, 0));89 return((int16_t)BIOS(B_RDWR, 0, bufad, bpp->fsiz, fatsec, 0)); 90 90 } 91 91 … … 117 117 */ 118 118 119 int 32_t _rdroot(struct dirent *buf, struct bpb *bpp)120 { 121 return( BIOS(B_RDWR, 0, buf, bpp->rdlen,119 int16_t _rdroot(struct dirent *buf, struct bpb *bpp) 120 { 121 return((int16_t)BIOS(B_RDWR, 0, buf, bpp->rdlen, 122 122 (bpp->fatrec + bpp->fsiz), 0)); 123 123 }
Note:
See TracChangeset
for help on using the changeset viewer.