peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0429-ui-spice-display.c-Fix-compilation-warnings-on-32-bi.patch

56753f
From 2b4d2ccd83280b22d2fea0801e11af5a944a135d Mon Sep 17 00:00:00 2001
56753f
From: Peter Maydell <peter.maydell@linaro.org>
56753f
Date: Wed, 7 Mar 2012 13:36:48 +0000
56753f
Subject: [PATCH 429/434] ui/spice-display.c: Fix compilation warnings on 32
56753f
 bit hosts
56753f
56753f
Fix compilation failures ("cast from pointer to integer of
56753f
different size [-Werror=pointer-to-int-cast]") by using
56753f
uintptr_t instead.
56753f
56753f
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
56753f
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
56753f
---
56753f
 ui/spice-display.c |   12 ++++++------
56753f
 1 file changed, 6 insertions(+), 6 deletions(-)
56753f
56753f
diff --git a/ui/spice-display.c b/ui/spice-display.c
56753f
index 28d6d4a..6d7563f 100644
56753f
--- a/ui/spice-display.c
56753f
+++ b/ui/spice-display.c
56753f
@@ -80,8 +80,8 @@ void qemu_spice_add_memslot(SimpleSpiceDisplay *ssd, QXLDevMemSlot *memslot,
56753f
 
56753f
     if (async != QXL_SYNC) {
56753f
         spice_qxl_add_memslot_async(&ssd->qxl, memslot,
56753f
-                (uint64_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
56753f
-                                         QXL_IO_MEMSLOT_ADD_ASYNC));
56753f
+                (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
56753f
+                                          QXL_IO_MEMSLOT_ADD_ASYNC));
56753f
     } else {
56753f
         ssd->worker->add_memslot(ssd->worker, memslot);
56753f
     }
56753f
@@ -100,8 +100,8 @@ void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id,
56753f
     trace_qemu_spice_create_primary_surface(ssd->qxl.id, id, surface, async);
56753f
     if (async != QXL_SYNC) {
56753f
         spice_qxl_create_primary_surface_async(&ssd->qxl, id, surface,
56753f
-                (uint64_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
56753f
-                                         QXL_IO_CREATE_PRIMARY_ASYNC));
56753f
+                (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
56753f
+                                          QXL_IO_CREATE_PRIMARY_ASYNC));
56753f
     } else {
56753f
         ssd->worker->create_primary_surface(ssd->worker, id, surface);
56753f
     }
56753f
@@ -113,8 +113,8 @@ void qemu_spice_destroy_primary_surface(SimpleSpiceDisplay *ssd,
56753f
     trace_qemu_spice_destroy_primary_surface(ssd->qxl.id, id, async);
56753f
     if (async != QXL_SYNC) {
56753f
         spice_qxl_destroy_primary_surface_async(&ssd->qxl, id,
56753f
-                (uint64_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
56753f
-                                         QXL_IO_DESTROY_PRIMARY_ASYNC));
56753f
+                (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_IO,
56753f
+                                          QXL_IO_DESTROY_PRIMARY_ASYNC));
56753f
     } else {
56753f
         ssd->worker->destroy_primary_surface(ssd->worker, id);
56753f
     }
56753f
-- 
56753f
1.7.10
56753f