diff options
Diffstat (limited to 'hw')
-rw-r--r-- | hw/fdc.c | 4 | ||||
-rw-r--r-- | hw/hpet.c | 4 | ||||
-rw-r--r-- | hw/hw.h | 4 | ||||
-rw-r--r-- | hw/serial.c | 4 |
4 files changed, 8 insertions, 8 deletions
@@ -643,9 +643,9 @@ static const VMStateDescription vmstate_fdrive = { } }; -static void fdc_pre_save(const void *opaque) +static void fdc_pre_save(void *opaque) { - fdctrl_t *s = (void *)opaque; + fdctrl_t *s = opaque; s->dor_vmstate = s->dor | GET_CUR_DRV(s); } @@ -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(); } @@ -308,8 +308,8 @@ struct VMStateDescription { LoadStateHandler *load_state_old; int (*pre_load)(void *opaque); int (*post_load)(void *opaque, int version_id); - void (*pre_save)(const void *opaque); - void (*post_save)(const void *opaque); + void (*pre_save)(void *opaque); + void (*post_save)(void *opaque); VMStateField *fields; }; diff --git a/hw/serial.c b/hw/serial.c index 6e37ead06e..4cdf2303a0 100644 --- a/hw/serial.c +++ b/hw/serial.c @@ -635,9 +635,9 @@ static void serial_event(void *opaque, int event) serial_receive_break(s); } -static void serial_pre_save(const void *opaque) +static void serial_pre_save(void *opaque) { - SerialState *s = (void *)opaque; + SerialState *s = opaque; s->fcr_vmstate = s->fcr; } |