mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
examples/dommigrate: Don't set retval in usage()
The usage() function should just print expected arguments. Make the function return void then. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Kristína Hanicová <khanicov@redhat.com>
This commit is contained in:
parent
c70cf347b9
commit
132069f845
@ -26,11 +26,10 @@
|
|||||||
#include <libvirt/virterror.h>
|
#include <libvirt/virterror.h>
|
||||||
|
|
||||||
|
|
||||||
static int
|
static void
|
||||||
usage(char *prgn, int ret)
|
usage(char *prgn)
|
||||||
{
|
{
|
||||||
printf("Usage: %s <src uri> <dst uri> <domain name>\n", prgn);
|
printf("Usage: %s <src uri> <dst uri> <domain name>\n", prgn);
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -42,7 +41,7 @@ main(int argc, char *argv[])
|
|||||||
virDomainPtr dom = NULL;
|
virDomainPtr dom = NULL;
|
||||||
|
|
||||||
if (argc < 4) {
|
if (argc < 4) {
|
||||||
ret = usage(argv[0], 1);
|
usage(argv[0]);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user