From: Ján Tomko Date: Wed, 11 Aug 2021 13:45:59 +0000 (+0200) Subject: tools: virsh: split variable declarations X-Git-Tag: v7.7.0-rc1~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65551e223963218cdd8294e3a88780a282c2d3d1;p=thirdparty%2Flibvirt.git tools: virsh: split variable declarations One variable per line. Signed-off-by: Ján Tomko Reviewed-by: Martin Kletzander --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 81f3c82094..ae979ddd49 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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;