summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-27 14:44:21 +0300
committerAlon Levy <alevy@redhat.com>2011-04-29 12:18:18 +0300
commit9f4e67c41f708164ddd979d99471217d2f721807 (patch)
tree12a97283af53ba987e69dff441225a6dee2614f8
parent66a30b8e44e0ec173fbadfd233b4b204e33fb9f5 (diff)
qxl_driver: fix three incompatible pointer passed warnings
-rw-r--r--src/qxl_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 03da906..8361726 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -905,14 +905,14 @@ qxl_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
qxl->io_pages = (void *)((unsigned long)qxl->ram);
qxl->io_pages_physical = (void *)((unsigned long)qxl->ram_physical);
-
- qxl->command_ring = qxl_ring_create (&(ram_header->cmd_ring),
+
+ qxl->command_ring = qxl_ring_create ((struct qxl_ring_header *)&(ram_header->cmd_ring),
sizeof (struct QXLCommand),
QXL_COMMAND_RING_SIZE, QXL_IO_NOTIFY_CMD);
- qxl->cursor_ring = qxl_ring_create (&(ram_header->cursor_ring),
+ qxl->cursor_ring = qxl_ring_create ((struct qxl_ring_header *)&(ram_header->cursor_ring),
sizeof (struct QXLCommand),
QXL_CURSOR_RING_SIZE, QXL_IO_NOTIFY_CURSOR);
- qxl->release_ring = qxl_ring_create (&(ram_header->release_ring),
+ qxl->release_ring = qxl_ring_create ((struct qxl_ring_header *)&(ram_header->release_ring),
sizeof (uint64_t),
QXL_RELEASE_RING_SIZE, 0);