qemuBuildMemoryDeviceProps: Fix const correctness

The @mem agrument of qemuBuildMemoryDeviceProps() function is
only read from. Make this fact obvious from the function
declaration too.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2021-12-01 13:23:04 +01:00
parent 0f97f9860c
commit bad883787f
2 changed files with 2 additions and 2 deletions

View File

@ -4003,7 +4003,7 @@ qemuBuildMemoryDimmBackendStr(virCommand *cmd,
virJSONValue *
qemuBuildMemoryDeviceProps(const virDomainDef *def,
virDomainMemoryDef *mem)
const virDomainMemoryDef *mem)
{
g_autoptr(virJSONValue) props = NULL;
const char *device = NULL;

View File

@ -154,7 +154,7 @@ int qemuBuildMemoryBackendProps(virJSONValue **backendProps,
virJSONValue *
qemuBuildMemoryDeviceProps(const virDomainDef *def,
virDomainMemoryDef *mem);
const virDomainMemoryDef *mem);
/* Current, best practice */
virJSONValue *