mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-14 07:04:43 -05:00
Use G_N_ELEMENTS instead of ARRAY_CARDINALITY
Prefer the GLib version of the macro. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -43,8 +43,8 @@ static virCPUDef cpuDefaultData = {
|
||||
.sockets = 1,
|
||||
.cores = 2,
|
||||
.threads = 1,
|
||||
.nfeatures = ARRAY_CARDINALITY(cpuDefaultFeatures),
|
||||
.nfeatures_max = ARRAY_CARDINALITY(cpuDefaultFeatures),
|
||||
.nfeatures = G_N_ELEMENTS(cpuDefaultFeatures),
|
||||
.nfeatures_max = G_N_ELEMENTS(cpuDefaultFeatures),
|
||||
.features = cpuDefaultFeatures,
|
||||
};
|
||||
|
||||
@@ -82,8 +82,8 @@ static virCPUDef cpuHaswellData = {
|
||||
.sockets = 1,
|
||||
.cores = 2,
|
||||
.threads = 2,
|
||||
.nfeatures = ARRAY_CARDINALITY(cpuHaswellFeatures),
|
||||
.nfeatures_max = ARRAY_CARDINALITY(cpuHaswellFeatures),
|
||||
.nfeatures = G_N_ELEMENTS(cpuHaswellFeatures),
|
||||
.nfeatures_max = G_N_ELEMENTS(cpuHaswellFeatures),
|
||||
.features = cpuHaswellFeatures,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user