mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vsh: adjust vshInit signature and remove redundant error label
As part of the effort to stay consistent, change the vshInit signature from returning int to returning bool. Moreover, remove the unnecessary error label as there is no cleanup that would make use of it.
This commit is contained in:
@@ -904,7 +904,7 @@ main(int argc, char **argv)
|
||||
if ((defaultConn = virGetEnvBlockSUID("VIRSH_DEFAULT_CONNECT_URI")))
|
||||
ctl->connname = vshStrdup(ctl, defaultConn);
|
||||
|
||||
if (vshInit(ctl, cmdGroups, NULL) < 0)
|
||||
if (!vshInit(ctl, cmdGroups, NULL))
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
if (!virshParseArgv(ctl, argc, argv) ||
|
||||
|
||||
Reference in New Issue
Block a user