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