From 84e2e3eb5f20248ce85d11b8b751e2bd01d8fd95 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 29 Sep 2009 22:48:20 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- hw/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index 64d70ed237..c46410aae3 100644 --- a/hw/pci.c +++ b/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); -- cgit 1.4.1