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

    r0292fbb r7258c6a  
    2222#include "fspars.h"
    2323
    24 extern  long    _berrno;
    25 extern  int     _seek(struct fcb *fcp);
     24extern  int32_t _berrno;
     25extern  int16_t _seek(struct fcb *fcp);
    2626
    2727#if DEBUGIT
     
    3030
    3131#if     TBUFFER
    32 extern  long    _secwr(char *buf, short rec);
     32extern  int32_t _secwr(int8_t *buf, int16_t rec);
    3333#endif
    3434
     
    4444*/
    4545
    46 int WriteRN(struct fcb *fcp, char *buf)
     46int16_t WriteRN(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 */
     
    8686        /* write the sector */
    8787
    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)) {
    8989
    9090#if DEBUGIT
     
    9999
    100100#if     TBUFFER
    101         _secwr(buf, (short)fcp->curdsn);
     101        _secwr(buf, (int16_t)fcp->curdsn);
    102102#endif
    103103
Note: See TracChangeset for help on using the changeset viewer.