diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-08 15:58:35 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-21 10:36:04 +0100 |
commit | f4a8a424fceb0f79bbd9f7ae4285c8a58eb5598e (patch) | |
tree | db477263e9d266aec0939fac0b6961affd62fd42 /hw | |
parent | 99c7f87826337fa81f2f0f9baa9ca0a44faf90e9 (diff) | |
download | qemu-f4a8a424fceb0f79bbd9f7ae4285c8a58eb5598e.zip qemu-f4a8a424fceb0f79bbd9f7ae4285c8a58eb5598e.tar.gz qemu-f4a8a424fceb0f79bbd9f7ae4285c8a58eb5598e.tar.bz2 |
qxl: fix warnings on 32bit
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/qxl.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -625,7 +625,7 @@ static void interface_release_resource(QXLInstance *sin, if (ext.group_id == MEMSLOT_GROUP_HOST) { /* host group -> vga mode update request */ - qemu_spice_destroy_update(&qxl->ssd, (void*)ext.info->id); + qemu_spice_destroy_update(&qxl->ssd, (void *)(intptr_t)ext.info->id); return; } @@ -748,7 +748,8 @@ static void interface_async_complete(QXLInstance *sin, uint64_t cookie) qxl->current_async = QXL_UNDEFINED_IO; qemu_mutex_unlock(&qxl->async_lock); - dprint(qxl, 2, "async_complete: %d (%ld) done\n", current_async, cookie); + dprint(qxl, 2, "async_complete: %d (%" PRId64 ") done\n", + current_async, cookie); switch (current_async) { case QXL_IO_CREATE_PRIMARY_ASYNC: qxl_create_guest_primary_complete(qxl); @@ -1015,7 +1016,7 @@ void *qxl_phys2virt(PCIQXLDevice *qxl, QXLPHYSICAL pqxl, int group_id) switch (group_id) { case MEMSLOT_GROUP_HOST: - return (void*)offset; + return (void *)(intptr_t)offset; case MEMSLOT_GROUP_GUEST: PANIC_ON(slot >= NUM_MEMSLOTS); PANIC_ON(!qxl->guest_slots[slot].active); |