Changeset 7258c6a in buchla-68k for libcio/readrn.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/readrn.c

    r0292fbb r7258c6a  
    2727
    2828#if     TBUFFER
    29 extern  long    _secrd(char *buf, short rec);
     29extern  int32_t _secrd(int8_t *buf, int16_t rec);
    3030#endif
    3131
    32 extern  long    _berrno;
    33 extern  int     _seek(struct fcb *fcp);
     32extern  int32_t _berrno;
     33extern  int16_t _seek(struct fcb *fcp);
    3434
    3535/*
     
    4444*/
    4545
    46 int ReadRN(struct fcb *fcp, char *buf)
     46int16_t ReadRN(struct fcb *fcp, int8_t *buf)
    4747{
    48         int     sv;             /* seek return code */
    49         long    brc;            /* bios return code */
     48        int16_t sv;             /* seek return code */
     49        int32_t brc;            /* bios return code */
    5050
    5151        if (sv = _seek(fcp))            /* try to find the sector we want */
     
    6868
    6969#if     TBUFFER
    70         if (brc = _secrd(buf, (short)fcp->curdsn)) {
     70        if (brc = _secrd(buf, (int16_t)fcp->curdsn)) {
    7171#else
    7272        if (brc = BIOS(B_RDWR, 0, buf, 1, (short)fcp->curdsn, 0)) {
Note: See TracChangeset for help on using the changeset viewer.