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:
Michal Privoznik 2020-08-24 18:29:44 +02:00
parent 7a706b02ed
commit 8d8088b8d9

View File

@ -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. */