From db5a8c7755a3e9fb634d02ba1b703447ecccb6c1 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 18 Apr 2021 22:14:42 -0700 Subject: [PATCH] apu: Use bool type for state change callback running parameter --- hw/xbox/mcpx/apu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xbox/mcpx/apu.c b/hw/xbox/mcpx/apu.c index 66540222e8..5f52fcae47 100644 --- a/hw/xbox/mcpx/apu.c +++ b/hw/xbox/mcpx/apu.c @@ -222,7 +222,7 @@ static void mcpx_vp_out_cb(void *opaque, uint8_t *stream, int free_b); static void mcpx_apu_realize(PCIDevice *dev, Error **errp); static void mcpx_apu_exitfn(PCIDevice *dev); static void mcpx_apu_reset(MCPXAPUState *d); -static void mcpx_apu_vm_state_change(void *opaque, int running, RunState state); +static void mcpx_apu_vm_state_change(void *opaque, bool running, RunState state); static int mcpx_apu_post_save(void *opaque); static int mcpx_apu_pre_load(void *opaque); static int mcpx_apu_post_load(void *opaque, int version_id); @@ -2320,7 +2320,7 @@ static void mcpx_apu_reset(MCPXAPUState *d) // Note: This is handled as a VM state change and not as a `pre_save` callback // because we want to halt the FIFO before any VM state is saved/restored to // avoid corruption. -static void mcpx_apu_vm_state_change(void *opaque, int running, RunState state) +static void mcpx_apu_vm_state_change(void *opaque, bool running, RunState state) { MCPXAPUState *d = opaque;