Change the callback prototype and fix the callback registered in the
process code.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/qemu/qemu_monitor.h | 6 +++---
src/qemu/qemu_process.c | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
index 0db2c69ec5..09da2eee5a 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -253,9 +253,9 @@ typedef void (*qemuMonitorDomainSerialChangeCallback)(qemuMonitor
*mon,
bool connected,
void *opaque);
-typedef int (*qemuMonitorDomainSpiceMigratedCallback)(qemuMonitor *mon,
- virDomainObj *vm,
- void *opaque);
+typedef void (*qemuMonitorDomainSpiceMigratedCallback)(qemuMonitor *mon,
+ virDomainObj *vm,
+ void *opaque);
typedef int (*qemuMonitorDomainMigrationStatusCallback)(qemuMonitor *mon,
virDomainObj *vm,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 26a88069c0..4c1c7eca43 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -1559,7 +1559,7 @@ qemuProcessHandleSerialChanged(qemuMonitor *mon G_GNUC_UNUSED,
}
-static int
+static void
qemuProcessHandleSpiceMigrated(qemuMonitor *mon G_GNUC_UNUSED,
virDomainObj *vm,
void *opaque G_GNUC_UNUSED)
@@ -1584,7 +1584,6 @@ qemuProcessHandleSpiceMigrated(qemuMonitor *mon G_GNUC_UNUSED,
cleanup:
virObjectUnlock(vm);
- return 0;
}
--
2.31.1