summaryrefslogtreecommitdiff
path: root/hw/hpet.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/hpet.c')
-rw-r--r--hw/hpet.c4
1 files changed, 2 insertions, 2 deletions
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();
}