]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
domain_cgroup: Don't put semicolon at the end of VIR_GET_LIMIT_PARAMETER macro
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 28 Jan 2022 11:15:01 +0000 (12:15 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 28 Jan 2022 16:06:21 +0000 (17:06 +0100)
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 <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/hypervisor/domain_cgroup.c

index f5bcced1a5f3744cf700dcee0be0ae31c1b5371b..fc0ad284c8033dc86fad69c10c565e82522fc356 100644 (file)
@@ -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