summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2022-01-12 12:52:16 +0100
committerPeter Krempa <pkrempa@redhat.com>2022-01-14 18:05:29 +0100
commit311b300d85cf710bc1d23b4341db2e7c774b788b (patch)
tree4940be9b184561a56339402f48cb035d95c047a3 /src/test
parent94686f1919f3fe142f41179c38b4f09e72b837bf (diff)
downloadlibvirt-311b300d85cf710bc1d23b4341db2e7c774b788b.tar.gz
virDomainSnapshotAlignDisks: Convert @default_snapshot to virDomainSnapshotLocation
Use the appropriate type for the variable and fix all callers. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 0e93b79922..2ff56cf03f 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -8717,7 +8717,7 @@ testDomainSnapshotAlignDisks(virDomainObj *vm,
virDomainSnapshotDef *def,
unsigned int flags)
{
- int align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
+ virDomainSnapshotLocation align_location = VIR_DOMAIN_SNAPSHOT_LOCATION_INTERNAL;
bool align_match = true;
if (flags & VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY) {