]> git.ipfire.org Git - thirdparty/libvirt.git/commit
examples: Use G_N_ELEMENTS instead of ARRAY_CARDINALITY
authorJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 11:51:20 +0000 (13:51 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2019 14:14:19 +0000 (16:14 +0200)
commitd99f17a502f9c8a5d6fe2fa12961f46cae59cc5c
treea0d05c4a746f0830d6ee901e6b1578b016d2df7d
parent88131931b818466e52f1190e0cd9c4ae8bd4872d
examples: Use G_N_ELEMENTS instead of ARRAY_CARDINALITY

We try to keep the example programs independent of libraries
other than libvirt.

Rename the locally defined ARRAY_CARDINALITY macro to G_N_ELEMENTS
which GLib provides, even though we don't actually include GLib.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
examples/c/misc/event-test.c