mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 03:25:20 +00:00
tools: virsh: split variable declarations
One variable per line. Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
4705edf6cc
commit
65551e2239
@ -5912,7 +5912,8 @@ cmdShutdown(vshControl *ctl, const vshCmd *cmd)
|
|||||||
const char *mode = NULL;
|
const char *mode = NULL;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
int rv;
|
int rv;
|
||||||
char **modes = NULL, **tmp;
|
char **modes = NULL;
|
||||||
|
char **tmp;
|
||||||
|
|
||||||
if (vshCommandOptStringReq(ctl, cmd, "mode", &mode) < 0)
|
if (vshCommandOptStringReq(ctl, cmd, "mode", &mode) < 0)
|
||||||
return false;
|
return false;
|
||||||
@ -5996,7 +5997,8 @@ cmdReboot(vshControl *ctl, const vshCmd *cmd)
|
|||||||
const char *name;
|
const char *name;
|
||||||
const char *mode = NULL;
|
const char *mode = NULL;
|
||||||
int flags = 0;
|
int flags = 0;
|
||||||
char **modes = NULL, **tmp;
|
char **modes = NULL;
|
||||||
|
char **tmp;
|
||||||
|
|
||||||
if (vshCommandOptStringReq(ctl, cmd, "mode", &mode) < 0)
|
if (vshCommandOptStringReq(ctl, cmd, "mode", &mode) < 0)
|
||||||
return false;
|
return false;
|
||||||
@ -12166,7 +12168,8 @@ virshDomainDetachInterface(char *doc,
|
|||||||
xmlXPathObjectPtr obj = NULL;
|
xmlXPathObjectPtr obj = NULL;
|
||||||
xmlXPathContextPtr ctxt = NULL;
|
xmlXPathContextPtr ctxt = NULL;
|
||||||
xmlNodePtr cur = NULL, matchNode = NULL;
|
xmlNodePtr cur = NULL, matchNode = NULL;
|
||||||
char *detach_xml = NULL, buf[64];
|
char *detach_xml = NULL;
|
||||||
|
char buf[64];
|
||||||
int diff_mac, ret = -1;
|
int diff_mac, ret = -1;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user