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

    r7d0d347 r8973acd  
    1919*/
    2020
    21 int16_t fwrite(int8_t *buffer, int16_t size, int16_t number, FILE *stream)
     21int16_t fwrite(void *buffer, int16_t size, int16_t number, FILE *stream)
    2222{
     23        uint8_t *buffer8;
    2324        register int16_t i, j;
     25
     26        buffer8 = buffer;
    2427
    2528        if (size < 0)           /* check size for validity */
     
    3134        for (i = 0; i < number; ++i)
    3235                for (j = 0; j < size; ++j)
    33                         if (putc(*buffer++, stream) EQ EOF)
     36                        if (putc(*buffer8++, stream) EQ EOF)
    3437                                return(i);
    3538
Note: See TracChangeset for help on using the changeset viewer.