It is called virCPUx86DataSorter since the function will work on any CPU
data type.
Signed-off-by: Jiri Denemark <jdenemar(a)redhat.com>
---
src/cpu/cpu_x86.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
index ad5e23843f..b354339852 100644
--- a/src/cpu/cpu_x86.c
+++ b/src/cpu/cpu_x86.c
@@ -288,7 +288,7 @@ x86FeatureFindInternal(const char *name)
static int
-virCPUx86CPUIDSorter(const void *a, const void *b)
+virCPUx86DataSorter(const void *a, const void *b)
{
virCPUx86DataItemPtr da = (virCPUx86DataItemPtr) a;
virCPUx86DataItemPtr db = (virCPUx86DataItemPtr) b;
@@ -393,7 +393,7 @@ virCPUx86DataAddCPUIDInt(virCPUx86Data *data,
return -1;
qsort(data->items, data->len,
- sizeof(virCPUx86DataItem), virCPUx86CPUIDSorter);
+ sizeof(virCPUx86DataItem), virCPUx86DataSorter);
}
return 0;
--
2.21.0