From d5c7655ca51672e30175093d1dbd0841c01fbe40 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 11 Feb 2016 08:42:00 +0100 Subject: [PATCH] conf: snapshot: Rename disksorter to virDomainSnapshotCompareDiskIndex 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 1eda7c2789..65a78d6de7 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. */ -- GitLab