mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
qemuDomainGetMemorySizeAlignment: Mark domain @def const
This function is not changing the domain definition, it's only reading from it. The function is going to be used from another function which already takes const virDomainDef. Make the @def const to avoid typecasting it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7a706b02ed
commit
8d8088b8d9
@ -8025,7 +8025,7 @@ qemuDomainAgentAvailable(virDomainObjPtr vm,
|
||||
|
||||
|
||||
static unsigned long long
|
||||
qemuDomainGetMemorySizeAlignment(virDomainDefPtr def)
|
||||
qemuDomainGetMemorySizeAlignment(const virDomainDef *def)
|
||||
{
|
||||
/* PPC requires the memory sizes to be rounded to 256MiB increments, so
|
||||
* round them to the size always. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user