[PATCH 09/10] bhyveProcessAutoDestroy: 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/bhyve/bhyve_process.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bhyve/bhyve_process.c b/src/bhyve/bhyve_process.c
index ee692d2ba3..40c97cb6ca 100644
--- a/src/bhyve/bhyve_process.c
+++ b/src/bhyve/bhyve_process.c
@@ -57,9 +57,10 @@ VIR_LOG_INIT("bhyve.bhyve_process");
 static void
 bhyveProcessAutoDestroy(virDomainObj *vm,
                         virConnectPtr conn G_GNUC_UNUSED,
-                        void *opaque)
+                        void *opaque G_GNUC_UNUSED)
 {
-    struct _bhyveConn *driver = opaque;
+    bhyveDomainObjPrivate *priv = vm->privateData;
+    struct _bhyveConn *driver = priv->driver;

     virBhyveProcessStop(driver, vm, VIR_DOMAIN_SHUTOFF_DESTROYED);

-- 
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