Changeset 7ff35c7 in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c


Ignore:
Timestamp:
2012-09-02T18:44:40Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d6cd626
Parents:
4c84ada5
Message:

rtc: Fix compile errors on 32bit architectures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    r4c84ada5 r7ff35c7  
    166166
    167167                ddf_msg(LVL_ERROR, "Cannot map the port %lx"
    168                     " for device %s", (intptr_t)rtc->io_addr,
     168                    " for device %s", (long unsigned int)rtc->io_addr,
    169169                    ddf_dev_get_name(rtc->dev));
    170170                return false;
     
    226226                }
    227227
    228                 rtc->io_addr = (ioport8_t *) res->res.io_range.address;
     228                rtc->io_addr = (ioport8_t *) (long) res->res.io_range.address;
    229229                ioport = true;
    230230                ddf_msg(LVL_NOTE, "Device %s was assigned I/O address "
    231231                    "0x%lx", ddf_dev_get_name(rtc->dev),
    232                     (intptr_t) rtc->io_addr);
     232                    (unsigned long int) rtc->io_addr);
    233233                rc = EOK;
    234234                break;
Note: See TracChangeset for help on using the changeset viewer.