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 | 8 ++++----
src/qemu/qemu_process.c | 3 +--
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
index db995de93e..a085e7ea27 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -175,10 +175,10 @@ typedef void (*qemuMonitorDomainStopCallback)(qemuMonitor *mon,
typedef void (*qemuMonitorDomainResumeCallback)(qemuMonitor *mon,
virDomainObj *vm,
void *opaque);
-typedef int (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon,
- virDomainObj *vm,
- long long offset,
- void *opaque);
+typedef void (*qemuMonitorDomainRTCChangeCallback)(qemuMonitor *mon,
+ virDomainObj *vm,
+ long long offset,
+ void *opaque);
typedef int (*qemuMonitorDomainWatchdogCallback)(qemuMonitor *mon,
virDomainObj *vm,
int action,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 80e8e20128..e41e350f33 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -745,7 +745,7 @@ qemuProcessHandleResume(qemuMonitor *mon G_GNUC_UNUSED,
virObjectEventStateQueue(driver->domainEventState, event);
}
-static int
+static void
qemuProcessHandleRTCChange(qemuMonitor *mon G_GNUC_UNUSED,
virDomainObj *vm,
long long offset,
@@ -785,7 +785,6 @@ qemuProcessHandleRTCChange(qemuMonitor *mon G_GNUC_UNUSED,
virObjectUnlock(vm);
virObjectEventStateQueue(driver->domainEventState, event);
- return 0;
}
--
2.31.1