[PATCH 3/3] server: Use the QXLPHYSICAL macros for conversions to/from pointers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This avoids compilation errors with -Werror on 32 bit systems.

Signed-off-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
---
 src/spiceqxl_display.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/spiceqxl_display.c b/src/spiceqxl_display.c
index a3a8978..00a84bd 100644
--- a/src/spiceqxl_display.c
+++ b/src/spiceqxl_display.c
@@ -24,6 +24,7 @@
 #endif
 
 #include <spice.h>
+#include <spice/qxl_dev.h>
 
 #include "qxl.h"
 #include "spiceqxl_display.h"
@@ -350,6 +351,6 @@ void qxl_add_spice_display_interface(qxl_screen_t *qxl)
 
 void spiceqxl_display_monitors_config(qxl_screen_t *qxl)
 {
-    spice_qxl_monitors_config_async(&qxl->display_sin, (QXLPHYSICAL)qxl->monitors_config,
+    spice_qxl_monitors_config_async(&qxl->display_sin, PTR_TO_QXLPHYSICAL(qxl->monitors_config),
                                     MEMSLOT_GROUP, 0);
 }
-- 
2.6.4
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]