render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
c480ed
From ea8bf8889659145cbf53306e3d16357f40679e4e Mon Sep 17 00:00:00 2001
c480ed
Message-Id: <ea8bf8889659145cbf53306e3d16357f40679e4e@dist-git>
c480ed
From: Jiri Denemark <jdenemar@redhat.com>
c480ed
Date: Fri, 21 Jun 2019 09:25:27 +0200
c480ed
Subject: [PATCH] cpu_x86: Rename virCPUx86CPUIDSorter
c480ed
MIME-Version: 1.0
c480ed
Content-Type: text/plain; charset=UTF-8
c480ed
Content-Transfer-Encoding: 8bit
c480ed
c480ed
It is called virCPUx86DataSorter since the function will work on any CPU
c480ed
data type.
c480ed
c480ed
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
(cherry picked from commit 95accfa7fa15b21bf4824b55be666312d11c273a)
c480ed
c480ed
https://bugzilla.redhat.com/show_bug.cgi?id=1697627
c480ed
c480ed
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
c480ed
Message-Id: <4661aa497f1b8d9b5ca1383a91affe24cd54caa9.1561068591.git.jdenemar@redhat.com>
c480ed
Reviewed-by: Ján Tomko <jtomko@redhat.com>
c480ed
---
c480ed
 src/cpu/cpu_x86.c | 4 ++--
c480ed
 1 file changed, 2 insertions(+), 2 deletions(-)
c480ed
c480ed
diff --git a/src/cpu/cpu_x86.c b/src/cpu/cpu_x86.c
c480ed
index 52709f109e..efb2a3bb07 100644
c480ed
--- a/src/cpu/cpu_x86.c
c480ed
+++ b/src/cpu/cpu_x86.c
c480ed
@@ -286,7 +286,7 @@ x86FeatureFindInternal(const char *name)
c480ed
 
c480ed
 
c480ed
 static int
c480ed
-virCPUx86CPUIDSorter(const void *a, const void *b)
c480ed
+virCPUx86DataSorter(const void *a, const void *b)
c480ed
 {
c480ed
     virCPUx86DataItemPtr da = (virCPUx86DataItemPtr) a;
c480ed
     virCPUx86DataItemPtr db = (virCPUx86DataItemPtr) b;
c480ed
@@ -391,7 +391,7 @@ virCPUx86DataAddCPUIDInt(virCPUx86Data *data,
c480ed
             return -1;
c480ed
 
c480ed
         qsort(data->items, data->len,
c480ed
-              sizeof(virCPUx86DataItem), virCPUx86CPUIDSorter);
c480ed
+              sizeof(virCPUx86DataItem), virCPUx86DataSorter);
c480ed
     }
c480ed
 
c480ed
     return 0;
c480ed
-- 
c480ed
2.22.0
c480ed