]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove return value from qemuMonitorDomainBalloonChangeCallback
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 e7a9dd2e43ed22f475f951e00cfc5d35006a3404..4efec27d6d02d75e86d7658849932bf7ef318c9c 100644 (file)
@@ -227,10 +227,10 @@ typedef void (*qemuMonitorDomainPMWakeupCallback)(qemuMonitor *mon,
 typedef void (*qemuMonitorDomainPMSuspendCallback)(qemuMonitor *mon,
                                                    virDomainObj *vm,
                                                    void *opaque);
-typedef int (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
-                                                      virDomainObj *vm,
-                                                      unsigned long long actual,
-                                                      void *opaque);
+typedef void (*qemuMonitorDomainBalloonChangeCallback)(qemuMonitor *mon,
+                                                       virDomainObj *vm,
+                                                       unsigned long long actual,
+                                                       void *opaque);
 typedef int (*qemuMonitorDomainPMSuspendDiskCallback)(qemuMonitor *mon,
                                                       virDomainObj *vm,
                                                       void *opaque);
index 8b828506372f927be25f447e0ed2fb7e42b154fe..1d35bda6495c1f08f6bb32e53d360b3475f56e13 100644 (file)
@@ -1202,7 +1202,7 @@ qemuProcessHandlePMSuspend(qemuMonitor *mon G_GNUC_UNUSED,
     virObjectEventStateQueue(driver->domainEventState, lifecycleEvent);
 }
 
-static int
+static void
 qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
                                virDomainObj *vm,
                                unsigned long long actual,
@@ -1225,7 +1225,6 @@ qemuProcessHandleBalloonChange(qemuMonitor *mon G_GNUC_UNUSED,
     virObjectUnlock(vm);
 
     virObjectEventStateQueue(driver->domainEventState, event);
-    return 0;
 }
 
 static int