Changeset 8973acd in buchla-68k for libcio/fsinit.c


Ignore:
Timestamp:
07/15/2017 03:12:10 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
ea232f9
Parents:
7d0d347
Message:

No more warnings in libcio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/fsinit.c

    r7d0d347 r8973acd  
    88#include "ram.h"
    99
    10 int8_t  *Stdbufs;                       /* buffer chain pointer */
     10int32_t *Stdbufs;                       /* buffer chain pointer */
    1111
    1212int8_t  Wrkbuf[BPSEC];                  /* sector work buffer */
     
    3939*/
    4040
    41 int16_t _badfio(io_arg arg, int8_t *buff, int16_t len)
     41int16_t _badfio(io_arg arg, void *buff, int16_t len)
    4242{
    4343        (void)arg;
     
    6969*/
    7070
    71 int16_t _nopo(int8_t *name, int16_t flag, int16_t mode, struct channel *chp, struct devtabl *dp)
     71int16_t _nopo(int8_t *name, uint16_t flag, struct channel *chp, struct devtabl *dp)
    7272{
    7373        (void)name;
    7474        (void)flag;
    75         (void)mode;
    7675        (void)chp;
    7776        (void)dp;
     
    9998*/
    10099
    101 void InitCH(struct channel *cp, int8_t rdi, int8_t wri, int8_t ioi, int8_t ski, chclo cfp, io_arg charg)
     100void InitCH(struct channel *cp, int16_t rdi, int16_t wri, int16_t ioi, int16_t ski, chclo cfp, io_arg charg)
    102101{
    103102        cp->c_read  = rdi;
     
    115114*/
    116115
    117 void Init_CB(FILE *fp, int8_t flags, int8_t unit, int32_t *bufad, int16_t bufsize)
     116void Init_CB(FILE *fp, uint8_t flags, int16_t unit, int32_t *bufad, int16_t bufsize)
    118117{
    119118        fp->_bp     = (int8_t *)0L;
     
    124123        fp->_bytbuf = 0;
    125124        fp->_buflen = bufsize;
    126 };
     125}
    127126
    128127/*
     
    139138        memsetw(Stdbuf, 0, sizeof Stdbuf / 2);          /* clear buffers */
    140139
    141         Init_CB(stdin,  _BUSY, 0, (int8_t *)0L, BUFSIZ);        /* stdin */
    142         Init_CB(stdout, _BUSY, 1, (int8_t *)0L, 1);     /* stdout */
    143         Init_CB(stderr, _BUSY, 2, (int8_t *)0L, 1);     /* stderr */
     140        Init_CB(stdin,  _BUSY, 0, NULL, BUFSIZ);        /* stdin */
     141        Init_CB(stdout, _BUSY, 1, NULL, 1);             /* stdout */
     142        Init_CB(stderr, _BUSY, 2, NULL, 1);             /* stderr */
    144143
    145144        for (i = 3; i < NSTREAMS; i++)
    146                 Init_CB(&Cbuffs[i], 0, 0, (int8_t *)0L, 0);
     145                Init_CB(&Cbuffs[i], 0, 0, NULL, 0);
    147146
    148147        Stdbuf[0][0] = 0L;              /* initialize the buffer list */
Note: See TracChangeset for help on using the changeset viewer.