mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
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:
parent
0f97f9860c
commit
bad883787f
@ -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;
|
||||
|
@ -154,7 +154,7 @@ int qemuBuildMemoryBackendProps(virJSONValue **backendProps,
|
||||
|
||||
virJSONValue *
|
||||
qemuBuildMemoryDeviceProps(const virDomainDef *def,
|
||||
virDomainMemoryDef *mem);
|
||||
const virDomainMemoryDef *mem);
|
||||
|
||||
/* Current, best practice */
|
||||
virJSONValue *
|
||||
|
Loading…
x
Reference in New Issue
Block a user