From: Michal Privoznik Date: Fri, 28 Jan 2022 11:15:01 +0000 (+0100) Subject: domain_cgroup: Don't put semicolon at the end of VIR_GET_LIMIT_PARAMETER macro X-Git-Tag: v8.1.0-rc1~257 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a269fae099f6a724957ed1ed3ec2e3f501675bde;p=thirdparty%2Flibvirt.git domain_cgroup: Don't put semicolon at the end of VIR_GET_LIMIT_PARAMETER macro In domain_cgroup.c there's VIR_GET_LIMIT_PARAMETER macro which has a semicolon at the end of its declaration. Well, remove it so that the places where macro is used have to put the semicolon explicitly. This helps with automatic reformatting (at least in vim). Signed-off-by: Michal Privoznik Reviewed-by: Laine Stump --- diff --git a/src/hypervisor/domain_cgroup.c b/src/hypervisor/domain_cgroup.c index f5bcced1a5..fc0ad284c8 100644 --- a/src/hypervisor/domain_cgroup.c +++ b/src/hypervisor/domain_cgroup.c @@ -212,11 +212,11 @@ virDomainCgroupSetMemoryLimitParameters(virCgroup *cgroup, return -1; \ \ if (rc == 1) \ - set_ ## VALUE = true; + set_ ## VALUE = true - VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SWAP_HARD_LIMIT, swap_hard_limit) - VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_HARD_LIMIT, hard_limit) - VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SOFT_LIMIT, soft_limit) + VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SWAP_HARD_LIMIT, swap_hard_limit); + VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_HARD_LIMIT, hard_limit); + VIR_GET_LIMIT_PARAMETER(VIR_DOMAIN_MEMORY_SOFT_LIMIT, soft_limit); #undef VIR_GET_LIMIT_PARAMETER