]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Use correct type when calling qemuPrepareNVRAM
authorJiri Denemark <jdenemar@redhat.com>
Tue, 20 Oct 2015 08:11:26 +0000 (10:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 4 Nov 2015 12:09:34 +0000 (13:09 +0100)
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@redhat.com>
src/qemu/qemu_process.c

index f7444196af9c73dd6a41112cbb79f3a31eb8cc8d..8aa9bb96dee00196dbb2f780a7cb00bf33e14039 100644 (file)
@@ -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