[PATCH v2 17/23] testutilsqemu: Ensure that ARG_* macros are out of range of QEMU_CAPS_*

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

 



Both are used in the same parser. Using offset values ensures that
errors are caught earlier.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/testutilsqemu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testutilsqemu.h b/tests/testutilsqemu.h
index 2e9ce8ec62..c6da0745a0 100644
--- a/tests/testutilsqemu.h
+++ b/tests/testutilsqemu.h
@@ -34,7 +34,7 @@ enum {
 };

 typedef enum {
-    ARG_QEMU_CAPS,
+    ARG_QEMU_CAPS = QEMU_CAPS_LAST + 1,
     ARG_GIC,
     ARG_MIGRATE_FROM,
     ARG_MIGRATE_FD,
-- 
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