]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove return value from qemuMonitorDomainMigrationStatusCallback
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jul 2021 08:05:06 +0000 (10:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 08:01:48 +0000 (10:01 +0200)
Change the callback prototype and fix the callback registered in the
process code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.h
src/qemu/qemu_process.c

index db67e669e2b85d2f0bbac99b840f3097489de6ee..6fef99ebac110e0e49c1354672ac857930a065d2 100644 (file)
@@ -257,10 +257,10 @@ typedef void (*qemuMonitorDomainSpiceMigratedCallback)(qemuMonitor *mon,
                                                        virDomainObj *vm,
                                                        void *opaque);
 
-typedef int (*qemuMonitorDomainMigrationStatusCallback)(qemuMonitor *mon,
-                                                        virDomainObj *vm,
-                                                        int status,
-                                                        void *opaque);
+typedef void (*qemuMonitorDomainMigrationStatusCallback)(qemuMonitor *mon,
+                                                         virDomainObj *vm,
+                                                         int status,
+                                                         void *opaque);
 
 typedef int (*qemuMonitorDomainMigrationPassCallback)(qemuMonitor *mon,
                                                       virDomainObj *vm,
index 154b6490acb56aabf03a4c2beacf1f396607fffd..55998a33146dd9fe62d9b895226d88a97997095c 100644 (file)
@@ -1587,7 +1587,7 @@ qemuProcessHandleSpiceMigrated(qemuMonitor *mon G_GNUC_UNUSED,
 }
 
 
-static int
+static void
 qemuProcessHandleMigrationStatus(qemuMonitor *mon G_GNUC_UNUSED,
                                  virDomainObj *vm,
                                  int status,
@@ -1636,7 +1636,6 @@ qemuProcessHandleMigrationStatus(qemuMonitor *mon G_GNUC_UNUSED,
  cleanup:
     virObjectUnlock(vm);
     virObjectEventStateQueue(driver->domainEventState, event);
-    return 0;
 }