Changeset 99cac86 in buchla-68k for libcio/conwr.c


Ignore:
Timestamp:
07/16/2017 11:27:12 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
d60f436
Parents:
ea232f9
Message:

Simplify kind handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/conwr.c

    rea232f9 r99cac86  
    1818int16_t _conwr(io_arg arg, void *buff, int16_t len)
    1919{
    20         struct devtabl *dp;
     20        int16_t kind;
    2121        int8_t *buff8;
    2222        register int16_t count;
    2323
    24         dp = (struct devtabl *)arg;
     24        kind = (int16_t)arg;
    2525        buff8 = buff;
    2626
    2727        for (count = 0; count < len; ++count)
    28                 BIOS(B_PUTC, dp->d_kind, *buff8++);
     28                BIOS(B_PUTC, kind, *buff8++);
    2929
    3030        return(count);
Note: See TracChangeset for help on using the changeset viewer.