[PATCH 08/33] qemu: Remove return value from qemuMonitorDomainRTCChangeCallback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change the callback prototype and fix the callback registered in the
process code.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux