Changeset 8973acd in buchla-68k for libcio/conin.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/conin.c

    r7d0d347 r8973acd  
    88#include "ram.h"
    99
    10 int8_t _ConBuf[258];    /* console input buffer */
     10uint8_t _ConBuf[258];   /* console input buffer */
    1111int16_t _CBused;
    1212
    13 int16_t _conin(io_arg arg, int8_t *buff, int16_t len)
     13int16_t _conin(io_arg arg, void *buff, int16_t len)
    1414{
    1515        int16_t         nbp;
     
    2323                _ConBuf[1] = _ConBuf[2] = 0;
    2424
    25                 readbuf(CON_DEV, _ConBuf);
     25                readbuf(CON_DEV, (int8_t *)_ConBuf);
    2626                writeln(CON_DEV, "\r\n");
    2727
     
    4343        memcpy(buff, (_ConBuf + _CBused), l);
    4444        _CBused += l;
    45         _ConBuf[1] -= l;
     45        _ConBuf[1] = (uint8_t)(_ConBuf[1] - l);
    4646        return (l);
    4747}
Note: See TracChangeset for help on using the changeset viewer.