Patchwork [11/16] vmware_vga: qemu_malloc() returns void *

login
register
mail settings
Submitter Juan Quintela
Date Oct. 14, 2009, 5:35 p.m.
Message ID <e7d376c4de1dbb6bc0f0f78eb3113c6c6d9b38e6.1255541443.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/36013/
State New
Headers show

Comments

Juan Quintela - Oct. 14, 2009, 5:35 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/vmware_vga.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c
index 5e31d66..1fb04bf 100644
--- a/hw/vmware_vga.c
+++ b/hw/vmware_vga.c
@@ -1124,7 +1124,7 @@  static int vmsvga_load(struct vmsvga_state_s *s, QEMUFile *f)
 static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size)
 {
     s->scratch_size = SVGA_SCRATCH_SIZE;
-    s->scratch = (uint32_t *) qemu_malloc(s->scratch_size * 4);
+    s->scratch = qemu_malloc(s->scratch_size * 4);

     vmsvga_reset(s);