[libvirt PATCH 1/4] tests: bhyve: split variable declarations

Ján Tomko jtomko at redhat.com
Tue Jul 28 23:44:24 UTC 2020


One variable per line.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 tests/bhyvexml2argvtest.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/bhyvexml2argvtest.c b/tests/bhyvexml2argvtest.c
index 9e7eb218b8..f7ae1db26d 100644
--- a/tests/bhyvexml2argvtest.c
+++ b/tests/bhyvexml2argvtest.c
@@ -26,9 +26,12 @@ static int testCompareXMLToArgvFiles(const char *xml,
                                      const char *dmcmdline,
                                      unsigned int flags)
 {
-    char *actualargv = NULL, *actualld = NULL, *actualdm = NULL;
+    char *actualargv = NULL;
+    char *actualld = NULL;
+    char *actualdm = NULL;
     virDomainDefPtr vmdef = NULL;
-    virCommandPtr cmd = NULL, ldcmd = NULL;
+    virCommandPtr cmd = NULL;
+    virCommandPtr ldcmd = NULL;
     virConnectPtr conn;
     int ret = -1;
 
@@ -117,7 +120,9 @@ testCompareXMLToArgvHelper(const void *data)
     int ret = -1;
     const struct testInfo *info = data;
     char *xml = NULL;
-    char *args = NULL, *ldargs = NULL, *dmargs = NULL;
+    char *args = NULL;
+    char *ldargs = NULL;
+    char *dmargs = NULL;
 
     xml = g_strdup_printf("%s/bhyvexml2argvdata/bhyvexml2argv-%s.xml",
                           abs_srcdir, info->name);
-- 
2.26.2




More information about the libvir-list mailing list