
On 11/02/16 10:20, Peter Krempa wrote:
Stick to the naming pattern. --- src/conf/snapshot_conf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/conf/snapshot_conf.c b/src/conf/snapshot_conf.c index 1eda7c2..65a78d6 100644 --- a/src/conf/snapshot_conf.c +++ b/src/conf/snapshot_conf.c @@ -430,7 +430,7 @@ virDomainSnapshotDefParseString(const char *xmlStr, }
static int -disksorter(const void *a, const void *b) +virDomainSnapshotCompareDiskIndex(const void *a, const void *b) { const virDomainSnapshotDiskDef *diska = a; const virDomainSnapshotDiskDef *diskb = b; @@ -562,7 +562,8 @@ virDomainSnapshotAlignDisks(virDomainSnapshotDefPtr def, 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 * backing file is a regular file. */
ACK Erik