[PATCH 07/10] qemuProcessAutoDestroy: Use 'driver' from VM private data

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

 



Access the 'driver' struct from the private data rather than the passed
opaque pointer in preparation to remove the opaque pointer.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_process.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 07e467d01e..a66ca9aa60 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -8387,10 +8387,10 @@ void qemuProcessStop(virQEMUDriver *driver,
 static void
 qemuProcessAutoDestroy(virDomainObj *dom,
                        virConnectPtr conn,
-                       void *opaque)
+                       void *opaque G_GNUC_UNUSED)
 {
-    virQEMUDriver *driver = opaque;
     qemuDomainObjPrivate *priv = dom->privateData;
+    virQEMUDriver *driver = priv->driver;
     virObjectEvent *event = NULL;
     unsigned int stopFlags = 0;

-- 
2.35.3




[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