summaryrefslogtreecommitdiff
path: root/replay
diff options
context:
space:
mode:
Diffstat (limited to 'replay')
-rw-r--r--replay/replay-snapshot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c
index a4ded2956d..b2e10769a6 100644
--- a/replay/replay-snapshot.c
+++ b/replay/replay-snapshot.c
@@ -21,10 +21,12 @@
#include "migration/vmstate.h"
#include "migration/snapshot.h"
-static void replay_pre_save(void *opaque)
+static int replay_pre_save(void *opaque)
{
ReplayState *state = opaque;
state->file_offset = ftell(replay_file);
+
+ return 0;
}
static int replay_post_load(void *opaque, int version_id)