[PATCH 13/33] qemu: Remove return value from qemuMonitorDomainJobStatusChangeCallback

[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 | 10 +++++-----
 src/qemu/qemu_process.c |  3 +--
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
index f2b784e4a6..e71cea797f 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -210,11 +210,11 @@ typedef void (*qemuMonitorDomainBlockJobCallback)(qemuMonitor *mon,
                                                   int status,
                                                   const char *error,
                                                   void *opaque);
-typedef int (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
-                                                        virDomainObj *vm,
-                                                        const char *jobname,
-                                                        int status,
-                                                        void *opaque);
+typedef void (*qemuMonitorDomainJobStatusChangeCallback)(qemuMonitor *mon,
+                                                         virDomainObj *vm,
+                                                         const char *jobname,
+                                                         int status,
+                                                         void *opaque);
 typedef int (*qemuMonitorDomainTrayChangeCallback)(qemuMonitor *mon,
                                                    virDomainObj *vm,
                                                    const char *devAlias,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index abbf1776a0..cf4b0e70df 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -977,7 +977,7 @@ qemuProcessHandleBlockJob(qemuMonitor *mon G_GNUC_UNUSED,
 }


-static int
+static void
 qemuProcessHandleJobStatusChange(qemuMonitor *mon G_GNUC_UNUSED,
                                  virDomainObj *vm,
                                  const char *jobname,
@@ -1034,7 +1034,6 @@ qemuProcessHandleJobStatusChange(qemuMonitor *mon G_GNUC_UNUSED,
  cleanup:
     qemuProcessEventFree(processEvent);
     virObjectUnlock(vm);
-    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