[libvirt] [PATCH 1/5] qemu: Use correct type when calling qemuPrepareNVRAM

Jiri Denemark jdenemar at redhat.com
Tue Oct 27 15:27:38 UTC 2015


qemuProcessStart was passing char * migrateFrom as the third argument to
qemuPrepareNVRAM. We should explicitly convert the pointer to bool which
is what the function expects.

Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
---
 src/qemu/qemu_process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index f744419..8aa9bb9 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -4428,7 +4428,7 @@ int qemuProcessStart(virConnectPtr conn,
      * Fill them in prior to setting the domain def as transient. */
     VIR_DEBUG("Generating paths");
 
-    if (qemuPrepareNVRAM(cfg, vm, migrateFrom) < 0)
+    if (qemuPrepareNVRAM(cfg, vm, !!migrateFrom) < 0)
         goto cleanup;
 
     /* Do this upfront, so any part of the startup process can add
-- 
2.6.2




More information about the libvir-list mailing list