mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
conf: snapshot: Rename disksorter to virDomainSnapshotCompareDiskIndex
Stick to the naming pattern.
This commit is contained in:
parent
1ed0bdd8d0
commit
d5c7655ca5
@ -430,7 +430,7 @@ virDomainSnapshotDefParseString(const char *xmlStr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
disksorter(const void *a, const void *b)
|
virDomainSnapshotCompareDiskIndex(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
const virDomainSnapshotDiskDef *diska = a;
|
const virDomainSnapshotDiskDef *diska = a;
|
||||||
const virDomainSnapshotDiskDef *diskb = b;
|
const virDomainSnapshotDiskDef *diskb = b;
|
||||||
@ -562,7 +562,8 @@ virDomainSnapshotAlignDisks(virDomainSnapshotDefPtr def,
|
|||||||
disk->snapshot = default_snapshot;
|
disk->snapshot = default_snapshot;
|
||||||
}
|
}
|
||||||
|
|
||||||
qsort(&def->disks[0], def->ndisks, sizeof(def->disks[0]), disksorter);
|
qsort(&def->disks[0], def->ndisks, sizeof(def->disks[0]),
|
||||||
|
virDomainSnapshotCompareDiskIndex);
|
||||||
|
|
||||||
/* Generate any default external file names, but only if the
|
/* Generate any default external file names, but only if the
|
||||||
* backing file is a regular file. */
|
* backing file is a regular file. */
|
||||||
|
Loading…
Reference in New Issue
Block a user