vmware_vga: qemu_malloc() returns void *

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-10-14 18:16:51 +02:00 committed by Anthony Liguori
parent 467d44b2f4
commit fe740c4316

View File

@ -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) static void vmsvga_init(struct vmsvga_state_s *s, int vga_ram_size)
{ {
s->scratch_size = SVGA_SCRATCH_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); vmsvga_reset(s);