diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:48:20 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:36 -0500 |
commit | 84e2e3eb5f20248ce85d11b8b751e2bd01d8fd95 (patch) | |
tree | 3273be0631e4876e9703ff020560fc8072c4ea81 /hw/ptimer.c | |
parent | 50af324697cb91d3e7a820e2b94ee0237c0103e2 (diff) | |
download | qemu-84e2e3eb5f20248ce85d11b8b751e2bd01d8fd95.zip qemu-84e2e3eb5f20248ce85d11b8b751e2bd01d8fd95.tar.gz qemu-84e2e3eb5f20248ce85d11b8b751e2bd01d8fd95.tar.bz2 |
vmstate: remove const for put operations
In a later patch, we introduce pre_save() and post_save() functions.
The whole point of that operation is to change things in the state.
Without this patch, we have to remove the const qualifier in each
use with a cast
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/ptimer.c')
-rw-r--r-- | hw/ptimer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ptimer.c b/hw/ptimer.c index a4343b6..4ddbc59 100644 --- a/hw/ptimer.c +++ b/hw/ptimer.c @@ -220,9 +220,9 @@ static int get_ptimer(QEMUFile *f, void *pv, size_t size) return 0; } -static void put_ptimer(QEMUFile *f, const void *pv, size_t size) +static void put_ptimer(QEMUFile *f, void *pv, size_t size) { - ptimer_state *v = (void *)pv; + ptimer_state *v = pv; qemu_put_ptimer(f, v); } |