mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
50af324697
commit
84e2e3eb5f
4 changed files with 28 additions and 28 deletions
2
hw/pci.c
2
hw/pci.c
|
@ -156,7 +156,7 @@ static int get_pci_config_device(QEMUFile *f, void *pv, size_t size)
|
|||
}
|
||||
|
||||
/* just put buffer */
|
||||
static void put_pci_config_device(QEMUFile *f, const void *pv, size_t size)
|
||||
static void put_pci_config_device(QEMUFile *f, void *pv, size_t size)
|
||||
{
|
||||
const uint8_t *v = pv;
|
||||
qemu_put_buffer(f, v, size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue