From: Marc-André Lureau Date: Wed, 14 Nov 2018 13:31:39 +0000 (+0400) Subject: vmstate: constify SaveVMHandlers X-Git-Tag: v4.0.0-rc0~145^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de22ded044db6b78ef8c04b8045c63683751613f;p=thirdparty%2Fqemu.git vmstate: constify SaveVMHandlers Signed-off-by: Marc-André Lureau Message-Id: <20181114133139.27346-1-marcandre.lureau@redhat.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- diff --git a/include/migration/register.h b/include/migration/register.h index d287f4c3172..3d0b9833c6f 100644 --- a/include/migration/register.h +++ b/include/migration/register.h @@ -72,7 +72,7 @@ int register_savevm_live(DeviceState *dev, const char *idstr, int instance_id, int version_id, - SaveVMHandlers *ops, + const SaveVMHandlers *ops, void *opaque); void unregister_savevm(DeviceState *dev, const char *idstr, void *opaque); diff --git a/migration/savevm.c b/migration/savevm.c index d784e8aa400..322660438df 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -303,7 +303,7 @@ typedef struct SaveStateEntry { int section_id; /* section id read from the stream */ int load_section_id; - SaveVMHandlers *ops; + const SaveVMHandlers *ops; const VMStateDescription *vmsd; void *opaque; CompatEntry *compat; @@ -614,7 +614,7 @@ int register_savevm_live(DeviceState *dev, const char *idstr, int instance_id, int version_id, - SaveVMHandlers *ops, + const SaveVMHandlers *ops, void *opaque) { SaveStateEntry *se;