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

    r7d0d347 r8973acd  
    1515*/
    1616
    17 int16_t fread(int8_t *buffer, uint16_t size, int16_t number, FILE *stream)
     17int16_t fread(void *buffer, int16_t size, int16_t number, FILE *stream)
    1818{
     19        uint8_t *buffer8;
    1920        int16_t total;
    2021        register int16_t c,i;
     22
     23        buffer8 = buffer;
    2124
    2225        for (total = 0; total < number; ++total) {
     
    2730                                return(total);
    2831
    29                         *buffer++ = c;
     32                        *buffer8++ = (uint8_t)c;
    3033                }
    3134        }
Note: See TracChangeset for help on using the changeset viewer.