aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-10-16 11:27:17 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:49 -0500
commitd6698281e21b7d3c97090bf626b8d8b008dc48e2 (patch)
tree9eecd9a6e83801b0b8fd44a7b2f1b95a5e013779 /savevm.c
parentvmstate: add VMSTATE_UINT16_EQUAL[_V] (diff)
downloadqemu-kvm-d6698281e21b7d3c97090bf626b8d8b008dc48e2.tar.gz
qemu-kvm-d6698281e21b7d3c97090bf626b8d8b008dc48e2.tar.bz2
qemu-kvm-d6698281e21b7d3c97090bf626b8d8b008dc48e2.zip
vmstate: Rename VMS_VARRAY to VMS_VARRAY_INT32
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/savevm.c b/savevm.c
index 0db5fc7d0..f82a6e65d 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1098,8 +1098,8 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
if (field->flags & VMS_ARRAY) {
n_elems = field->num;
- } else if (field->flags & VMS_VARRAY) {
- n_elems = *(size_t *)(opaque+field->num_offset);
+ } else if (field->flags & VMS_VARRAY_INT32) {
+ n_elems = *(int32_t *)(opaque+field->num_offset);
}
if (field->flags & VMS_POINTER) {
base_addr = *(void **)base_addr;
@@ -1145,8 +1145,8 @@ void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd,
if (field->flags & VMS_ARRAY) {
n_elems = field->num;
- } else if (field->flags & VMS_VARRAY) {
- n_elems = *(size_t *)(opaque+field->num_offset);
+ } else if (field->flags & VMS_VARRAY_INT32) {
+ n_elems = *(int32_t *)(opaque+field->num_offset);
}
if (field->flags & VMS_POINTER) {
base_addr = *(void **)base_addr;