diff options
Diffstat (limited to 'hw/input/ps2.c')
-rw-r--r-- | hw/input/ps2.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/input/ps2.c b/hw/input/ps2.c index 77906d5f46..dff3f1e024 100644 --- a/hw/input/ps2.c +++ b/hw/input/ps2.c @@ -1216,12 +1216,14 @@ static int ps2_kbd_post_load(void* opaque, int version_id) return 0; } -static void ps2_kbd_pre_save(void *opaque) +static int ps2_kbd_pre_save(void *opaque) { PS2KbdState *s = (PS2KbdState *)opaque; PS2State *ps2 = &s->common; ps2_common_post_load(ps2); + + return 0; } static const VMStateDescription vmstate_ps2_keyboard = { @@ -1254,12 +1256,14 @@ static int ps2_mouse_post_load(void *opaque, int version_id) return 0; } -static void ps2_mouse_pre_save(void *opaque) +static int ps2_mouse_pre_save(void *opaque) { PS2MouseState *s = (PS2MouseState *)opaque; PS2State *ps2 = &s->common; ps2_common_post_load(ps2); + + return 0; } static const VMStateDescription vmstate_ps2_mouse = { |