Changeset 0c06bc5 in buchla-68k


Ignore:
Timestamp:
07/16/2017 11:45:11 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
f261cc8
Parents:
1d174fb
Message:

Prefer int16_t.

Location:
libcio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcio/filesys.c

    r1d174fb r0c06bc5  
    8282*/
    8383
    84 int32_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat)
     84int16_t _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat)
    8585{
    8686        int16_t fatsec;
    8787
    8888        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));
    9090}
    9191
     
    117117*/
    118118
    119 int32_t _rdroot(struct dirent *buf, struct bpb *bpp)
    120 {
    121         return(BIOS(B_RDWR, 0, buf, bpp->rdlen,
     119int16_t _rdroot(struct dirent *buf, struct bpb *bpp)
     120{
     121        return((int16_t)BIOS(B_RDWR, 0, buf, bpp->rdlen,
    122122                (bpp->fatrec + bpp->fsiz), 0));
    123123}
  • libcio/filesys.x

    r1d174fb r0c06bc5  
    4444extern  int16_t         _fmake(struct fcb *fcp);
    4545extern  int16_t         _ftrnc(struct dirent *dp);
    46 extern  int32_t         _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat);
     46extern  int16_t         _getfat(uint8_t *bufad, struct bpb *bpp, int16_t nfat);
    4747extern  int16_t         _gtcl12(uint8_t *fat, int16_t cl);
    4848extern  int16_t         _inifcb(struct fcb *fcp, int8_t *name, int8_t *ext, uint16_t mode);
     
    5252extern  int16_t         _opnvol(void);
    5353extern  int16_t         _rdfat(uint8_t *bufad, struct bpb *bpp);
    54 extern  int32_t         _rdroot(struct dirent *buf, struct bpb *bpp);
     54extern  int16_t         _rdroot(struct dirent *buf, struct bpb *bpp);
    5555extern  int16_t         _seek(struct fcb *fcp);
    5656extern  int16_t         fcbinit(int8_t *name, struct fcb *fcp);
Note: See TracChangeset for help on using the changeset viewer.