mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
cpu_x86: Rename virCPUx86CPUIDSorter
It is called virCPUx86DataSorter since the function will work on any CPU data type. Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
609f467f13
commit
95accfa7fa
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user