From ea8bf8889659145cbf53306e3d16357f40679e4e Mon Sep 17 00:00:00 2001 Message-Id: From: Jiri Denemark Date: Fri, 21 Jun 2019 09:25:27 +0200 Subject: [PATCH] cpu_x86: Rename virCPUx86CPUIDSorter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It is called virCPUx86DataSorter since the function will work on any CPU data type. Signed-off-by: Jiri Denemark Reviewed-by: Ján Tomko (cherry picked from commit 95accfa7fa15b21bf4824b55be666312d11c273a) https://bugzilla.redhat.com/show_bug.cgi?id=1697627 Signed-off-by: Jiri Denemark Message-Id: <4661aa497f1b8d9b5ca1383a91affe24cd54caa9.1561068591.git.jdenemar@redhat.com> Reviewed-by: Ján Tomko --- 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 52709f109e..efb2a3bb07 100644 --- a/src/cpu/cpu_x86.c +++ b/src/cpu/cpu_x86.c @@ -286,7 +286,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; @@ -391,7 +391,7 @@ virCPUx86DataAddCPUIDInt(virCPUx86Data *data, return -1; qsort(data->items, data->len, - sizeof(virCPUx86DataItem), virCPUx86CPUIDSorter); + sizeof(virCPUx86DataItem), virCPUx86DataSorter); } return 0; -- 2.22.0