From 7b4a8995a0c3d801199f112f6158e550a7257a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Tue, 28 Jul 2020 02:55:33 +0200 Subject: [PATCH] tests: bhyve: split variable declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One variable per line. Signed-off-by: Ján Tomko Reviewed-by: Laine Stump Reviewed-by: Roman Bogorodskiy --- 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);