summaryrefslogtreecommitdiffstats
path: root/hw/nvram/eeprom93xx.c
diff options
context:
space:
mode:
authorMarc-André Lureau2018-11-14 14:29:30 +0100
committerPaolo Bonzini2018-11-27 15:35:15 +0100
commit03fee66fde3f9e179e3973e8c50f6fa0a0a14613 (patch)
tree0e9eb8138fe8f5a653b752e54f0cc035d48a2aab /hw/nvram/eeprom93xx.c
parentmigration: savevm: consult migration blockers (diff)
downloadqemu-03fee66fde3f9e179e3973e8c50f6fa0a0a14613.tar.gz
qemu-03fee66fde3f9e179e3973e8c50f6fa0a0a14613.tar.xz
qemu-03fee66fde3f9e179e3973e8c50f6fa0a0a14613.zip
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>
Diffstat (limited to 'hw/nvram/eeprom93xx.c')
-rw-r--r--hw/nvram/eeprom93xx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/nvram/eeprom93xx.c b/hw/nvram/eeprom93xx.c
index 2fd0e3c29f..2db3d7cce6 100644
--- a/hw/nvram/eeprom93xx.c
+++ b/hw/nvram/eeprom93xx.c
@@ -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");