]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuDomainSetLifecycleAction: Add a note about argument range-check
authorPeter Krempa <pkrempa@redhat.com>
Fri, 20 Aug 2021 13:17:00 +0000 (15:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 25 Aug 2021 13:32:43 +0000 (15:32 +0200)
The public API wrapper range-checks the arguments. Save the next reader
the hassle of looking it up.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c

index 6e83d7e068b2ed9309c7865bb55afb178d2a5a85..a86ff2582200015080302d36a0d56d044267bdad 100644 (file)
@@ -19652,6 +19652,8 @@ qemuDomainSetLifecycleAction(virDomainPtr dom,
     virDomainDef *persistentDef = NULL;
     int ret = -1;
 
+    /* note that 'action' and 'type' are range-checked in the public API wrapper */
+
     virCheckFlags(VIR_DOMAIN_AFFECT_LIVE |
                   VIR_DOMAIN_AFFECT_CONFIG, -1);