mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
conf: snapshot: Remove 'update_current' parameter from virDomainSnapshotRedefinePrep
The variable is unused so we can drop it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
551dde9256
commit
e0a4a011c1
@ -983,7 +983,6 @@ virDomainSnapshotRedefinePrep(virDomainObjPtr vm,
|
||||
virDomainSnapshotDefPtr *defptr,
|
||||
virDomainMomentObjPtr *snap,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
bool *update_current G_GNUC_UNUSED,
|
||||
unsigned int flags)
|
||||
{
|
||||
virDomainSnapshotDefPtr def = *defptr;
|
||||
|
@ -136,7 +136,6 @@ int virDomainSnapshotRedefinePrep(virDomainObjPtr vm,
|
||||
virDomainSnapshotDefPtr *def,
|
||||
virDomainMomentObjPtr *snap,
|
||||
virDomainXMLOptionPtr xmlopt,
|
||||
bool *update_current,
|
||||
unsigned int flags);
|
||||
|
||||
int virDomainSnapshotRedefineValidate(virDomainSnapshotDefPtr def,
|
||||
|
@ -15903,7 +15903,7 @@ qemuDomainSnapshotCreateXML(virDomainPtr domain,
|
||||
if (redefine) {
|
||||
if (virDomainSnapshotRedefinePrep(vm, &def, &snap,
|
||||
driver->xmlopt,
|
||||
&update_current, flags) < 0)
|
||||
flags) < 0)
|
||||
goto endjob;
|
||||
} else {
|
||||
/* Easiest way to clone inactive portion of vm->def is via
|
||||
|
@ -8575,7 +8575,7 @@ testDomainSnapshotCreateXML(virDomainPtr domain,
|
||||
if (redefine) {
|
||||
if (virDomainSnapshotRedefinePrep(vm, &def, &snap,
|
||||
privconn->xmlopt,
|
||||
&update_current, flags) < 0)
|
||||
flags) < 0)
|
||||
goto cleanup;
|
||||
} else {
|
||||
if (!(def->parent.dom = virDomainDefCopy(vm->def,
|
||||
|
Loading…
x
Reference in New Issue
Block a user