[Spice-devel] [spice-protocol] qxl_dev: fix const cast warning for QXL_R[AO]M_MAGIC
Alon Levy
alevy at redhat.com
Mon Apr 9 10:05:54 PDT 2012
---
spice/qxl_dev.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/spice/qxl_dev.h b/spice/qxl_dev.h
index 5e6ce06..741a1f6 100644
--- a/spice/qxl_dev.h
+++ b/spice/qxl_dev.h
@@ -53,8 +53,8 @@ enum {
#define QXL_DEVICE_ID_DEVEL 0x01ff
#define QXL_REVISION_DEVEL 0x01
-#define QXL_ROM_MAGIC (*(uint32_t*)"QXRO")
-#define QXL_RAM_MAGIC (*(uint32_t*)"QXRA")
+#define QXL_ROM_MAGIC (*(const uint32_t*)"QXRO")
+#define QXL_RAM_MAGIC (*(const uint32_t*)"QXRA")
enum {
QXL_RAM_RANGE_INDEX,
--
1.7.9.3
More information about the Spice-devel
mailing list