Changeset 7258c6a in buchla-68k for iolib/waitcr.c


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iolib/waitcr.c

    r0292fbb r7258c6a  
    2121*/
    2222
    23 int waitcr(void)
     23int16_t waitcr(void)
    2424{
    25         int     c;
     25        int16_t c;
    2626
    2727        BIOS(B_PUTC, CON_DEV, '\007');          /* wake up the operator */
     
    2929        /* await a CR, in which case we just exit */
    3030
    31         while ('\r' NE (c = (0x007F & (int)BIOS(B_GETC, CON_DEV))))
     31        while ('\r' NE (c = (0x007F & (int16_t)BIOS(B_GETC, CON_DEV))))
    3232                if (c EQ '\007')        /* ... or a control-G */
    3333                        xtrap15();      /* ... in which case we trap first */
Note: See TracChangeset for help on using the changeset viewer.