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

    r7d0d347 r8973acd  
    4040
    4141        while ((i = getchar()) NE EOF AND i NE '\n')
    42                 *cp++ = i;
     42                *cp++ = (int8_t)i;
    4343
    4444        *cp = 0;        /* terminate the line */
     
    5555        register int8_t *cp;
    5656
     57        c = 0;
    5758        cp = s;
    5859
    5960        while (--n > 0 AND (c = agetc(fp)) NE EOF) {
    6061
    61                 *cp++ = c;
     62                *cp++ = (int8_t)c;
    6263
    6364                if (c EQ '\n')
Note: See TracChangeset for help on using the changeset viewer.