mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
vmstate: constify VMStateField
Because they are supposed to remain const. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20181114132931.22624-1-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5aaac46793
commit
03fee66fde
22 changed files with 162 additions and 135 deletions
|
@ -625,7 +625,7 @@ void msix_unset_vector_notifiers(PCIDevice *dev)
|
|||
}
|
||||
|
||||
static int put_msix_state(QEMUFile *f, void *pv, size_t size,
|
||||
VMStateField *field, QJSON *vmdesc)
|
||||
const VMStateField *field, QJSON *vmdesc)
|
||||
{
|
||||
msix_save(pv, f);
|
||||
|
||||
|
@ -633,7 +633,7 @@ static int put_msix_state(QEMUFile *f, void *pv, size_t size,
|
|||
}
|
||||
|
||||
static int get_msix_state(QEMUFile *f, void *pv, size_t size,
|
||||
VMStateField *field)
|
||||
const VMStateField *field)
|
||||
{
|
||||
msix_load(pv, f);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue