summaryrefslogtreecommitdiff
path: root/hw/esp.c
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-01 12:49:32 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-01 12:49:32 +0000
commitf33fb4c60c87e9c125223b5a61c9d3c59bb340a1 (patch)
treef678d08c6c8e05cffa141d192520ee8658244f9a /hw/esp.c
parentd2006b9358f3b1afd392ec655bcedc0f4f4e173f (diff)
downloadqemu-f33fb4c60c87e9c125223b5a61c9d3c59bb340a1.tar.gz
qemu-f33fb4c60c87e9c125223b5a61c9d3c59bb340a1.tar.bz2
qemu-f33fb4c60c87e9c125223b5a61c9d3c59bb340a1.zip
Fix compilation warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4638 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/esp.c')
-rw-r--r--hw/esp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/esp.c b/hw/esp.c
index a7b17f70ca..1843fb895c 100644
--- a/hw/esp.c
+++ b/hw/esp.c
@@ -577,7 +577,7 @@ static void esp_save(QEMUFile *f, void *opaque)
qemu_put_buffer(f, s->rregs, ESP_REGS);
qemu_put_buffer(f, s->wregs, ESP_REGS);
- qemu_put_be32s(f, &s->ti_size);
+ qemu_put_be32s(f, (uint32_t *)&s->ti_size);
qemu_put_be32s(f, &s->ti_rptr);
qemu_put_be32s(f, &s->ti_wptr);
qemu_put_buffer(f, s->ti_buf, TI_BUFSZ);
@@ -599,7 +599,7 @@ static int esp_load(QEMUFile *f, void *opaque, int version_id)
qemu_get_buffer(f, s->rregs, ESP_REGS);
qemu_get_buffer(f, s->wregs, ESP_REGS);
- qemu_get_be32s(f, &s->ti_size);
+ qemu_get_be32s(f, (uint32_t *)&s->ti_size);
qemu_get_be32s(f, &s->ti_rptr);
qemu_get_be32s(f, &s->ti_wptr);
qemu_get_buffer(f, s->ti_buf, TI_BUFSZ);