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 5b845ef903..14c780cf4f 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -2993,8 +2993,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 55bc67072a..9f7283bb91 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