The objects at @def and @mem pointers is only read and not written. Make the arguments const to make that explicit. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- src/qemu/qemu_command.c | 4 ++-- src/qemu/qemu_command.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index b673645826..ecbdd226a4 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -2976,8 +2976,8 @@ qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps, const char *alias, virQEMUDriverConfigPtr cfg, qemuDomainObjPrivatePtr priv, - virDomainDefPtr def, - virDomainMemoryDefPtr mem, + const virDomainDef *def, + const virDomainMemoryDef *mem, bool force) { const char *backendType = "memory-backend-file"; diff --git a/src/qemu/qemu_command.h b/src/qemu/qemu_command.h index 89d99b111f..8a30f2852c 100644 --- a/src/qemu/qemu_command.h +++ b/src/qemu/qemu_command.h @@ -150,8 +150,8 @@ int qemuBuildMemoryBackendProps(virJSONValuePtr *backendProps, const char *alias, virQEMUDriverConfigPtr cfg, qemuDomainObjPrivatePtr priv, - virDomainDefPtr def, - virDomainMemoryDefPtr mem, + const virDomainDef *def, + const virDomainMemoryDef *mem, bool force); char *qemuBuildMemoryDeviceStr(virDomainMemoryDefPtr mem, -- 2.26.2