mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
docs: replace ARRAY_CARDINALITY with G_N_ELEMENTS
Fix docs illustrating call with an obsolete macro. Reviewed-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
497d8555c4
commit
c748000cd1
@ -127,7 +127,7 @@ locks, this will be done from the libvirtd process.
|
||||
};
|
||||
mgr = virLockManagerNew(lockPlugin,
|
||||
VIR_LOCK_MANAGER_TYPE_DOMAIN,
|
||||
ARRAY_CARDINALITY(params),
|
||||
G_N_ELEMENTS(params),
|
||||
params,
|
||||
0)));
|
||||
|
||||
@ -171,7 +171,7 @@ however, a process may voluntarily give up the lock by running
|
||||
};
|
||||
mgr = virLockManagerNew(lockPlugin,
|
||||
VIR_LOCK_MANAGER_TYPE_DOMAIN,
|
||||
ARRAY_CARDINALITY(params),
|
||||
G_N_ELEMENTS(params),
|
||||
params,
|
||||
0)));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user