conf: snapshot: Rename disksorter to virDomainSnapshotCompareDiskIndex

Stick to the naming pattern.
This commit is contained in:
Peter Krempa 2016-02-11 08:42:00 +01:00
parent 1ed0bdd8d0
commit d5c7655ca5

View File

@ -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. */