mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -91,7 +91,7 @@ testVirPCIDeviceDetach(const void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
int ret = -1;
|
||||
virPCIDevicePtr dev[] = {NULL, NULL, NULL};
|
||||
size_t i, nDev = ARRAY_CARDINALITY(dev);
|
||||
size_t i, nDev = G_N_ELEMENTS(dev);
|
||||
virPCIDeviceListPtr activeDevs = NULL, inactiveDevs = NULL;
|
||||
int count;
|
||||
|
||||
@@ -132,7 +132,7 @@ testVirPCIDeviceReset(const void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
int ret = -1;
|
||||
virPCIDevicePtr dev[] = {NULL, NULL, NULL};
|
||||
size_t i, nDev = ARRAY_CARDINALITY(dev);
|
||||
size_t i, nDev = G_N_ELEMENTS(dev);
|
||||
virPCIDeviceListPtr activeDevs = NULL, inactiveDevs = NULL;
|
||||
int count;
|
||||
|
||||
@@ -167,7 +167,7 @@ testVirPCIDeviceReattach(const void *opaque G_GNUC_UNUSED)
|
||||
{
|
||||
int ret = -1;
|
||||
virPCIDevicePtr dev[] = {NULL, NULL, NULL};
|
||||
size_t i, nDev = ARRAY_CARDINALITY(dev);
|
||||
size_t i, nDev = G_N_ELEMENTS(dev);
|
||||
virPCIDeviceListPtr activeDevs = NULL, inactiveDevs = NULL;
|
||||
int count;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user