]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: cmdAttachDisk: Declare one variable per line
authorPeter Krempa <pkrempa@redhat.com>
Thu, 19 Nov 2020 09:38:10 +0000 (10:38 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 23 Nov 2020 13:44:39 +0000 (14:44 +0100)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tools/virsh-domain.c

index c999458d721fa56f3e3c9b23569feea0c8abb50f..e27b779533d66884b6c9605fb6e160a46644a479 100644 (file)
@@ -562,13 +562,23 @@ static bool
 cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
 {
     virDomainPtr dom = NULL;
-    const char *source = NULL, *target = NULL, *driver = NULL,
-                *subdriver = NULL, *type = NULL, *mode = NULL,
-                *iothread = NULL, *cache = NULL, *io = NULL,
-                *serial = NULL, *straddr = NULL, *wwn = NULL,
-                *targetbus = NULL, *alias = NULL;
+    const char *source = NULL;
+    const char *target = NULL;
+    const char *driver = NULL;
+    const char *subdriver = NULL;
+    const char *type = NULL;
+    const char *mode = NULL;
+    const char *iothread = NULL;
+    const char *cache = NULL;
+    const char *io = NULL;
+    const char *serial = NULL;
+    const char *straddr = NULL;
+    const char *wwn = NULL;
+    const char *targetbus = NULL;
+    const char *alias = NULL;
     struct DiskAddress diskAddr;
-    bool isFile = false, functionReturn = false;
+    bool isFile = false;
+    bool functionReturn = false;
     int ret;
     unsigned int flags = VIR_DOMAIN_AFFECT_CURRENT;
     const char *stype = NULL;