From d4bfa4d7c6e53f03df49f2dfc3fa87d5e18218dd Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 29 Sep 2009 22:48:22 +0200 Subject: vmstate: remove const from pre_save() functions Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/hpet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/hpet.c') diff --git a/hw/hpet.c b/hw/hpet.c index 6535b8ebf2..64163bd524 100644 --- a/hw/hpet.c +++ b/hw/hpet.c @@ -157,9 +157,9 @@ static void update_irq(struct HPETTimer *timer) } } -static void hpet_pre_save(const void *opaque) +static void hpet_pre_save(void *opaque) { - HPETState *s = (void *)opaque; + HPETState *s = opaque; /* save current counter value */ s->hpet_counter = hpet_get_ticks(); } -- cgit v1.2.3