[PATCH 1/8] qemu: Use C99 initializers for qemuMigrationParamsTPMap

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

 



Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
---
 src/qemu/qemu_migration_params.c | 36 ++++++++++++++++----------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c
index e112e790c2..658e785059 100644
--- a/src/qemu/qemu_migration_params.c
+++ b/src/qemu/qemu_migration_params.c
@@ -154,29 +154,29 @@ static const qemuMigrationParamsFlagMapItem qemuMigrationParamsFlagMap[] = {
 /* Translation from VIR_MIGRATE_PARAM_* typed parameters to
  * qemuMigrationParams. */
 static const qemuMigrationParamsTPMapItem qemuMigrationParamsTPMap[] = {
-    {VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL,
-     QEMU_MIGRATION_PARAM_THROTTLE_INITIAL,
-     QEMU_MIGRATION_SOURCE},
+    {.typedParam = VIR_MIGRATE_PARAM_AUTO_CONVERGE_INITIAL,
+     .param = QEMU_MIGRATION_PARAM_THROTTLE_INITIAL,
+     .party = QEMU_MIGRATION_SOURCE},
 
-    {VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT,
-     QEMU_MIGRATION_PARAM_THROTTLE_INCREMENT,
-     QEMU_MIGRATION_SOURCE},
+    {.typedParam = VIR_MIGRATE_PARAM_AUTO_CONVERGE_INCREMENT,
+     .param = QEMU_MIGRATION_PARAM_THROTTLE_INCREMENT,
+     .party = QEMU_MIGRATION_SOURCE},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL,
-     QEMU_MIGRATION_PARAM_COMPRESS_LEVEL,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_MT_LEVEL,
+     .param = QEMU_MIGRATION_PARAM_COMPRESS_LEVEL,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADS,
-     QEMU_MIGRATION_PARAM_COMPRESS_THREADS,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_MT_THREADS,
+     .param = QEMU_MIGRATION_PARAM_COMPRESS_THREADS,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADS,
-     QEMU_MIGRATION_PARAM_DECOMPRESS_THREADS,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_MT_DTHREADS,
+     .param = QEMU_MIGRATION_PARAM_DECOMPRESS_THREADS,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 
-    {VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE,
-     QEMU_MIGRATION_PARAM_XBZRLE_CACHE_SIZE,
-     QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
+    {.typedParam = VIR_MIGRATE_PARAM_COMPRESSION_XBZRLE_CACHE,
+     .param = QEMU_MIGRATION_PARAM_XBZRLE_CACHE_SIZE,
+     .party = QEMU_MIGRATION_SOURCE | QEMU_MIGRATION_DESTINATION},
 };
 
 static const qemuMigrationParamType qemuMigrationParamTypes[] = {
-- 
2.20.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[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