aboutsummaryrefslogtreecommitdiff
path: root/migration/global_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'migration/global_state.c')
-rw-r--r--migration/global_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/migration/global_state.c b/migration/global_state.c
index dfdaf63..8e8ab5c 100644
--- a/migration/global_state.c
+++ b/migration/global_state.c
@@ -101,12 +101,14 @@ static int global_state_post_load(void *opaque, int version_id)
return 0;
}
-static void global_state_pre_save(void *opaque)
+static int global_state_pre_save(void *opaque)
{
GlobalState *s = opaque;
trace_migrate_global_state_pre_save((char *)s->runstate);
s->size = strlen((char *)s->runstate) + 1;
+
+ return 0;
}
static const VMStateDescription vmstate_globalstate = {