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/ide.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/ide.c')
-rw-r--r-- | hw/ide.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2509,8 +2509,8 @@ static void ide_init_ioport(IDEState *ide_state, int iobase, int iobase2) /* save per IDE drive data */ static void ide_save(QEMUFile* f, IDEState *s) { - qemu_put_be32s(f, &s->mult_sectors); - qemu_put_be32s(f, &s->identify_set); + qemu_put_be32(f, s->mult_sectors); + qemu_put_be32(f, s->identify_set); if (s->identify_set) { qemu_put_buffer(f, (const uint8_t *)s->identify_data, 512); } @@ -2537,8 +2537,8 @@ static void ide_save(QEMUFile* f, IDEState *s) /* load per IDE drive data */ static void ide_load(QEMUFile* f, IDEState *s) { - qemu_get_be32s(f, &s->mult_sectors); - qemu_get_be32s(f, &s->identify_set); + s->mult_sectors=qemu_get_be32(f); + s->identify_set=qemu_get_be32(f); if (s->identify_set) { qemu_get_buffer(f, (uint8_t *)s->identify_data, 512); } |