mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-13 06:34:42 -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:
@@ -991,7 +991,7 @@ testFirewallQueryCallback(virFirewallPtr fw,
|
||||
"--jump", "REJECT", NULL);
|
||||
|
||||
for (i = 0; lines[i] != NULL; i++) {
|
||||
if (expectedLineNum >= ARRAY_CARDINALITY(expectedLines)) {
|
||||
if (expectedLineNum >= G_N_ELEMENTS(expectedLines)) {
|
||||
expectedLineError = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user