mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -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
|
@ -95,15 +95,15 @@ struct _eeprom_t {
|
|||
*/
|
||||
|
||||
static int get_uint16_from_uint8(QEMUFile *f, void *pv, size_t size,
|
||||
VMStateField *field)
|
||||
const VMStateField *field)
|
||||
{
|
||||
uint16_t *v = pv;
|
||||
*v = qemu_get_ubyte(f);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int put_unused(QEMUFile *f, void *pv, size_t size, VMStateField *field,
|
||||
QJSON *vmdesc)
|
||||
static int put_unused(QEMUFile *f, void *pv, size_t size,
|
||||
const VMStateField *field, QJSON *vmdesc)
|
||||
{
|
||||
fprintf(stderr, "uint16_from_uint8 is used only for backwards compatibility.\n");
|
||||
fprintf(stderr, "Never should be used to write a new state.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue