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:
Ján Tomko 2021-08-11 15:45:59 +02:00
parent 4705edf6cc
commit 65551e2239

View File

@ -5912,7 +5912,8 @@ cmdShutdown(vshControl *ctl, const vshCmd *cmd)
const char *mode = NULL;
int flags = 0;
int rv;
char **modes = NULL, **tmp;
char **modes = NULL;
char **tmp;
if (vshCommandOptStringReq(ctl, cmd, "mode", &mode) < 0)
return false;
@ -5996,7 +5997,8 @@ cmdReboot(vshControl *ctl, const vshCmd *cmd)
const char *name;
const char *mode = NULL;
int flags = 0;
char **modes = NULL, **tmp;
char **modes = NULL;
char **tmp;
if (vshCommandOptStringReq(ctl, cmd, "mode", &mode) < 0)
return false;
@ -12166,7 +12168,8 @@ virshDomainDetachInterface(char *doc,
xmlXPathObjectPtr obj = NULL;
xmlXPathContextPtr ctxt = NULL;
xmlNodePtr cur = NULL, matchNode = NULL;
char *detach_xml = NULL, buf[64];
char *detach_xml = NULL;
char buf[64];
int diff_mac, ret = -1;
size_t i;