]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove return value from qemuMonitorDomainGuestPanicCallback
authorPeter Krempa <pkrempa@redhat.com>
Tue, 20 Jul 2021 08:05:06 +0000 (10:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 23 Jul 2021 08:01:47 +0000 (10:01 +0200)
Change the callback prototype and fix the callback registered in the
process code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.h
src/qemu/qemu_process.c

index 2f3517185866d6cb029b444869a038185d82e0e3..f9eba2e64765c930d68f62a6f32d962013b3137c 100644 (file)
@@ -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,
index 26244ecd3d38c9383526cbf000bab67cd534ee8d..69be76ad96d56b985db5a1302ea5a2ce0861d581 100644 (file)
@@ -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;
 }