]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tools: virsh: split variable declarations
authorJán Tomko <jtomko@redhat.com>
Wed, 11 Aug 2021 13:45:59 +0000 (15:45 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 16 Aug 2021 11:10:33 +0000 (13:10 +0200)
One variable per line.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-domain.c

index 81f3c820944dc066763b056d313e14ed5fa7138e..ae979ddd498df8b5500ee75b92247ce0703caf16 100644 (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;