[PATCH 02/22] qemuDomainSetLifecycleAction: Add a note about argument range-check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The public API wrapper range-checks the arguments. Save the next reader
the hassle of looking it up.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 444e9e5cbc..2de17aaa4e 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -19654,6 +19654,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);

-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux