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 /vl.c | |
parent | b99dc0d1a4d395bad649ef25abe21c5f076787a5 (diff) | |
download | qemu-bee8d6842d1421ce3456779492561a92530e9c5a.zip qemu-bee8d6842d1421ce3456779492561a92530e9c5a.tar.gz qemu-bee8d6842d1421ce3456779492561a92530e9c5a.tar.bz2 |
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 'vl.c')
-rw-r--r-- | vl.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1126,9 +1126,9 @@ static void timer_save(QEMUFile *f, void *opaque) if (cpu_ticks_enabled) { hw_error("cannot save state if virtual timers are running"); } - qemu_put_be64s(f, &cpu_ticks_offset); - qemu_put_be64s(f, &ticks_per_sec); - qemu_put_be64s(f, &cpu_clock_offset); + qemu_put_be64(f, cpu_ticks_offset); + qemu_put_be64(f, ticks_per_sec); + qemu_put_be64(f, cpu_clock_offset); } static int timer_load(QEMUFile *f, void *opaque, int version_id) @@ -1138,10 +1138,10 @@ static int timer_load(QEMUFile *f, void *opaque, int version_id) if (cpu_ticks_enabled) { return -EINVAL; } - qemu_get_be64s(f, &cpu_ticks_offset); - qemu_get_be64s(f, &ticks_per_sec); + cpu_ticks_offset=qemu_get_be64(f); + ticks_per_sec=qemu_get_be64(f); if (version_id == 2) { - qemu_get_be64s(f, &cpu_clock_offset); + cpu_clock_offset=qemu_get_be64(f); } return 0; } |