diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-11-14 17:29:30 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-11-27 15:35:15 +0100 |
commit | 03fee66fde3f9e179e3973e8c50f6fa0a0a14613 (patch) | |
tree | 0e9eb8138fe8f5a653b752e54f0cc035d48a2aab /hw/nvram/fw_cfg.c | |
parent | 5aaac46793828d01c893b9d99d905c657f59541e (diff) |
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/fw_cfg.c')
-rw-r--r-- | hw/nvram/fw_cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c index 946f765f7f..3cb726ff68 100644 --- a/hw/nvram/fw_cfg.c +++ b/hw/nvram/fw_cfg.c @@ -520,15 +520,15 @@ static void fw_cfg_reset(DeviceState *d) */ static int get_uint32_as_uint16(QEMUFile *f, void *pv, size_t size, - VMStateField *field) + const VMStateField *field) { uint32_t *v = pv; *v = qemu_get_be16(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, "uint32_as_uint16 is only used for backward compatibility.\n"); fprintf(stderr, "This functions shouldn't be called.\n"); |