[PATCH 19/33] qemu: Remove return value from qemuMonitorDomainGuestPanicCallback

[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 | 4 +---
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/qemu/qemu_monitor.h b/src/qemu/qemu_monitor.h
index 2cfcd40ab8..76e87d5909 100644
--- a/src/qemu/qemu_monitor.h
+++ b/src/qemu/qemu_monitor.h
@@ -234,10 +234,10 @@ typedef void (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
 typedef void (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
                                                        virDomainObj *vm,
                                                        void *opaque);
-typedef int (*qemuMonitorDomainGuestPanicCallback)(qemuMonitor *mon,
-                                                   virDomainObj *vm,
-                                                   qemuMonitorEventPanicInfo *info,
-                                                   void *opaque);
+typedef void (*qemuMonitorDomainGuestPanicCallback)(qemuMonitor *mon,
+                                                    virDomainObj *vm,
+                                                    qemuMonitorEventPanicInfo *info,
+                                                    void *opaque);
 typedef int (*qemuMonitorDomainDeviceDeletedCallback)(qemuMonitor *mon,
                                                       virDomainObj *vm,
                                                       const char *devAlias,
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index ef0b9a4503..cf77b7448c 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -1268,7 +1268,7 @@ qemuProcessHandlePMSuspendDisk(qemuMonitor *mon G_GNUC_UNUSED,
 }


-static int
+static void
 qemuProcessHandleGuestPanic(qemuMonitor *mon G_GNUC_UNUSED,
                             virDomainObj *vm,
                             qemuMonitorEventPanicInfo *info,
@@ -1294,8 +1294,6 @@ qemuProcessHandleGuestPanic(qemuMonitor *mon G_GNUC_UNUSED,
     }

     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