diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-16 23:41:11 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-12-16 23:41:11 +0000 |
commit | bee8d6842d1421ce3456779492561a92530e9c5a (patch) | |
tree | df34a09af2cc2bfa13af3c749172a2932d7a3735 /hw/vmware_vga.c | |
parent | b99dc0d1a4d395bad649ef25abe21c5f076787a5 (diff) |
qemu_put signedness fixes, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3824 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/vmware_vga.c')
-rw-r--r-- | hw/vmware_vga.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 7937e071b..6cae25ce1 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -1028,41 +1028,41 @@ static CPUWriteMemoryFunc *vmsvga_vram_write[] = { static void vmsvga_save(struct vmsvga_state_s *s, QEMUFile *f) { - qemu_put_be32s(f, &s->depth); - qemu_put_be32s(f, &s->enable); - qemu_put_be32s(f, &s->config); - qemu_put_be32s(f, &s->cursor.id); - qemu_put_be32s(f, &s->cursor.x); - qemu_put_be32s(f, &s->cursor.y); - qemu_put_be32s(f, &s->cursor.on); - qemu_put_be32s(f, &s->index); + qemu_put_be32(f, s->depth); + qemu_put_be32(f, s->enable); + qemu_put_be32(f, s->config); + qemu_put_be32(f, s->cursor.id); + qemu_put_be32(f, s->cursor.x); + qemu_put_be32(f, s->cursor.y); + qemu_put_be32(f, s->cursor.on); + qemu_put_be32(f, s->index); qemu_put_buffer(f, (uint8_t *) s->scratch, s->scratch_size * 4); - qemu_put_be32s(f, &s->new_width); - qemu_put_be32s(f, &s->new_height); + qemu_put_be32(f, s->new_width); + qemu_put_be32(f, s->new_height); qemu_put_be32s(f, &s->guest); qemu_put_be32s(f, &s->svgaid); - qemu_put_be32s(f, &s->syncing); - qemu_put_be32s(f, &s->fb_size); + qemu_put_be32(f, s->syncing); + qemu_put_be32(f, s->fb_size); } static int vmsvga_load(struct vmsvga_state_s *s, QEMUFile *f) { int depth; - qemu_get_be32s(f, &depth); - qemu_get_be32s(f, &s->enable); - qemu_get_be32s(f, &s->config); - qemu_get_be32s(f, &s->cursor.id); - qemu_get_be32s(f, &s->cursor.x); - qemu_get_be32s(f, &s->cursor.y); - qemu_get_be32s(f, &s->cursor.on); - qemu_get_be32s(f, &s->index); + depth=qemu_get_be32(f); + s->enable=qemu_get_be32(f); + s->config=qemu_get_be32(f); + s->cursor.id=qemu_get_be32(f); + s->cursor.x=qemu_get_be32(f); + s->cursor.y=qemu_get_be32(f); + s->cursor.on=qemu_get_be32(f); + s->index=qemu_get_be32(f); qemu_get_buffer(f, (uint8_t *) s->scratch, s->scratch_size * 4); - qemu_get_be32s(f, &s->new_width); - qemu_get_be32s(f, &s->new_height); + s->new_width=qemu_get_be32(f); + s->new_height=qemu_get_be32(f); qemu_get_be32s(f, &s->guest); qemu_get_be32s(f, &s->svgaid); - qemu_get_be32s(f, &s->syncing); - qemu_get_be32s(f, &s->fb_size); + s->syncing=qemu_get_be32(f); + s->fb_size=qemu_get_be32(f); if (s->enable && depth != s->depth) { printf("%s: need colour depth of %i bits to resume operation.\n", |