1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/examples
Michal Privoznik a4056d52eb examples/dommigrate: Make retval portable
Currently, the dommigrate example returns 0 or 1 for success or
failure state, respectively. Except for a few cases where it
forgot to change the @ret variable just before jumping onto the
'cleanup' label. Making the code follow our usual pattern
(initialize @ret to an error value and set it to success value
only at the end) fixes those cases. Also, using EXIT_SUCCESS and
EXIT_FAILURE is more portable (even though on my system they are
just an alias to values the example already uses).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Kristína Hanicová <khanicov@redhat.com>
2021-11-12 17:17:16 +01:00
..
c examples/dommigrate: Make retval portable 2021-11-12 17:17:16 +01:00
polkit meson: examples: build and install example files 2020-08-03 09:27:06 +02:00
sh meson: examples: build and install example files 2020-08-03 09:27:06 +02:00
systemtap examples: Use GLib event loop impl in events.stp 2020-08-21 11:34:23 +01:00
xml test_driver: Introduce testIOThreadInfo and generate IOThread infos 2021-09-23 13:41:11 +02:00
meson.build meson: examples: build and install example files 2020-08-03 09:27:06 +02:00