From: Michal Privoznik Date: Mon, 24 Aug 2020 16:29:44 +0000 (+0200) Subject: qemuDomainGetMemorySizeAlignment: Mark domain @def const X-Git-Tag: v6.7.0-rc1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d8088b8d9c807b2843b46b2084f0c2d55e9f023;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index b321722f0e..d708ef5f00 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -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. */