summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-29 22:48:22 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:37 -0500
commitd4bfa4d7c6e53f03df49f2dfc3fa87d5e18218dd (patch)
treeeeba5e21d01737d1261dc96e129a7608455e8687 /hw
parente59fb3741bee196e3177fdbd2d00c87865ecace3 (diff)
downloadhqemu-d4bfa4d7c6e53f03df49f2dfc3fa87d5e18218dd.zip
hqemu-d4bfa4d7c6e53f03df49f2dfc3fa87d5e18218dd.tar.gz
vmstate: remove const from pre_save() functions
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fdc.c4
-rw-r--r--hw/hpet.c4
-rw-r--r--hw/hw.h4
-rw-r--r--hw/serial.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/hw/fdc.c b/hw/fdc.c
index c03ab47..a7c65c7 100644
--- a/hw/fdc.c
+++ b/hw/fdc.c
@@ -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);
}
diff --git a/hw/hpet.c b/hw/hpet.c
index 6535b8e..64163bd 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();
}
diff --git a/hw/hw.h b/hw/hw.h
index 6f60493..b9ae33a 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -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 6e37ead..4cdf230 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;
}
OpenPOWER on IntegriCloud