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 f35f07f3ac..db995de93e 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -172,9 +172,9 @@ typedef void (*qemuMonitorDomainResetCallback)(qemuMonitor *mon,
typedef void (*qemuMonitorDomainStopCallback)(qemuMonitor *mon,
virDomainObj *vm,
void *opaque);
-typedef int (*qemuMonitorDomainResumeCallback)(qemuMonitor *mon,
- virDomainObj *vm,
- void *opaque);
+typedef void (*qemuMonitorDomainResumeCallback)(qemuMonitor *mon,
+ virDomainObj *vm,
+ void *opaque);
typedef int (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon,
virDomainObj *vm,
long long offset,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index c501a981ca..80e8e20128 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -703,7 +703,7 @@ qemuProcessHandleStop(qemuMonitor *mon G_GNUC_UNUSED,
}
-static int
+static void
qemuProcessHandleResume(qemuMonitor *mon G_GNUC_UNUSED,
virDomainObj *vm,
void *opaque)
@@ -743,7 +743,6 @@ qemuProcessHandleResume(qemuMonitor *mon G_GNUC_UNUSED,
virObjectUnlock(vm);
virObjectEventStateQueue(driver->domainEventState, event);
- return 0;
}
static int
--
2.31.1