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(a)redhat.com>
---
src/qemu/qemu_migration.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 6b3815ac58..7de0929a36 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -2164,10 +2164,10 @@ qemuMigrationDstRun(virQEMUDriver *driver,
static void
qemuMigrationSrcCleanup(virDomainObj *vm,
virConnectPtr conn,
- void *opaque)
+ void *opaque G_GNUC_UNUSED)
{
- virQEMUDriver *driver = opaque;
qemuDomainObjPrivate *priv = vm->privateData;
+ virQEMUDriver *driver = priv->driver;
qemuDomainJobPrivate *jobPriv = priv->job.privateData;
VIR_DEBUG("vm=%s, conn=%p, asyncJob=%s, phase=%s",
--
2.35.3