'def' is commonly used for domain definition. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/qemu/qemu_snapshot.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c index 797972f4d4..5f256a77df 100644 --- a/src/qemu/qemu_snapshot.c +++ b/src/qemu/qemu_snapshot.c @@ -1750,7 +1750,7 @@ qemuSnapshotRedefine(virDomainObj *vm, static virDomainSnapshotPtr qemuSnapshotCreate(virDomainObj *vm, virDomainPtr domain, - virDomainSnapshotDef *def, + virDomainSnapshotDef *snapdef, virQEMUDriver *driver, virQEMUDriverConfig *cfg, unsigned int flags) @@ -1760,17 +1760,17 @@ qemuSnapshotCreate(virDomainObj *vm, virDomainMomentObj *current = NULL; virDomainSnapshotPtr ret = NULL; - if (qemuSnapshotCreateAlignDisks(vm, def, driver, flags) < 0) + if (qemuSnapshotCreateAlignDisks(vm, snapdef, driver, flags) < 0) return NULL; - if (qemuSnapshotPrepare(vm, def, &flags) < 0) + if (qemuSnapshotPrepare(vm, snapdef, &flags) < 0) return NULL; if (flags & VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA) { snap = tmpsnap = virDomainMomentObjNew(); - snap->def = &def->parent; + snap->def = &snapdef->parent; } else { - if (!(snap = virDomainSnapshotAssignDef(vm->snapshots, def))) + if (!(snap = virDomainSnapshotAssignDef(vm->snapshots, snapdef))) return NULL; if ((current = virDomainSnapshotGetCurrent(vm->snapshots))) { @@ -1778,7 +1778,7 @@ qemuSnapshotCreate(virDomainObj *vm, } } - virObjectRef(def); + virObjectRef(snapdef); /* actually do the snapshot */ if (virDomainObjIsActive(vm)) { -- 2.31.1