diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-22 02:56:20 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-22 02:56:20 +0000 |
commit | 3092c164c5ff87e886c9af019d39ca64a764f2ff (patch) | |
tree | a7911f1ad00768d48cadd5c3f36ea724a7c5bd6c /hw/tmp105.c | |
parent | 4cc8a06b6961c9540be00fe235e38598357d1915 (diff) | |
download | qemu-3092c164c5ff87e886c9af019d39ca64a764f2ff.tar.gz qemu-3092c164c5ff87e886c9af019d39ca64a764f2ff.tar.bz2 qemu-3092c164c5ff87e886c9af019d39ca64a764f2ff.zip |
Hush pointer target signedness warnings from gcc 4.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4231 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/tmp105.c')
-rw-r--r-- | hw/tmp105.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/tmp105.c b/hw/tmp105.c index 6d0505d2dc..da26e46715 100644 --- a/hw/tmp105.c +++ b/hw/tmp105.c @@ -185,9 +185,9 @@ static void tmp105_save(QEMUFile *f, void *opaque) qemu_put_8s(f, &s->pointer); qemu_put_8s(f, &s->config); - qemu_put_be16s(f, &s->temperature); - qemu_put_be16s(f, &s->limit[0]); - qemu_put_be16s(f, &s->limit[1]); + qemu_put_be16s(f, (uint16_t *) &s->temperature); + qemu_put_be16s(f, (uint16_t *) &s->limit[0]); + qemu_put_be16s(f, (uint16_t *) &s->limit[1]); qemu_put_byte(f, s->alarm); s->faults = tmp105_faultq[(s->config >> 3) & 3]; /* F */ @@ -204,9 +204,9 @@ static int tmp105_load(QEMUFile *f, void *opaque, int version_id) qemu_get_8s(f, &s->pointer); qemu_get_8s(f, &s->config); - qemu_get_be16s(f, &s->temperature); - qemu_get_be16s(f, &s->limit[0]); - qemu_get_be16s(f, &s->limit[1]); + qemu_get_be16s(f, (uint16_t *) &s->temperature); + qemu_get_be16s(f, (uint16_t *) &s->limit[0]); + qemu_get_be16s(f, (uint16_t *) &s->limit[1]); s->alarm = qemu_get_byte(f); tmp105_interrupt_update(s); |