libvirt/examples/c
Michal Privoznik 7db8373e08 Use G_N_ELEMENTS() more
In a few places we still use the good old:

  sizeof(var) / sizeof(var[0])
  sizeof(var) / sizeof(int)

The G_N_ELEMENTS() macro is preferred though. In a few places we
don't link with glib, so provide the macro definition.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
2023-03-13 13:29:07 +01:00
..
admin Fix couple of comment typos 2022-11-30 12:18:11 +01:00
domain lib: Use the same style in the 'struct option' 2022-11-22 10:15:11 +01:00
misc Use G_N_ELEMENTS() more 2023-03-13 13:29:07 +01:00
meson.build