Changeset 7258c6a in buchla-68k for libcio/read.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/read.c

    r0292fbb r7258c6a  
    4646#endif
    4747
    48 extern  int     _badfd(void);
    49 extern  int     _conin(char *buff, int len);
    50 extern  int     _seek(struct fcb *fcp);
     48extern  int16_t _badfd(void);
     49extern  int16_t _conin(int8_t *buff, int16_t len);
     50extern  int16_t _seek(struct fcb *fcp);
    5151
    52 extern  void    *memcpy(void *vp1, void *vp2, int n);
     52extern  void    *memcpy(void *vp1, void *vp2, int16_t n);
    5353
    54 int     _filerd(struct fcb *fp, char *buffer, unsigned len);
     54int16_t _filerd(struct fcb *fp, int8_t *buffer, uint16_t len);
    5555
    56 static int (*t_read[])() = {
     56static int16_t (*t_read[])() = {
    5757
    5858        _badfd,         /* 0 - invalid type */
     
    7272*/
    7373
    74 int read(int fd, char *buff, unsigned len)
     74int16_t read(int16_t fd, int8_t *buff, uint16_t len)
    7575{
    7676        register struct channel *chp;
     
    9797*/
    9898
    99 int _getsec(struct fcb *fp, char *buf, unsigned len)
     99int16_t _getsec(struct fcb *fp, int8_t *buf, uint16_t len)
    100100{
    101101        if ((errno = ReadRN(fp, Wrkbuf)) NE 0)  /* get current sector */
     
    126126*/
    127127
    128 int _filerd(struct fcb *fp, char *buffer, unsigned len)
     128int16_t _filerd(struct fcb *fp, int8_t *buffer, uint16_t len)
    129129{
    130         register unsigned l;
    131         register unsigned j, k;
    132         register long curpos, newpos;
     130        register uint16_t l;
     131        register uint16_t j, k;
     132        register int32_t curpos, newpos;
    133133
    134134        l = 0;
Note: See TracChangeset for help on using the changeset viewer.