Clean up the code to adhere to more of the standard two spaces between
functions, separate lines for type and function name, one argument per line.
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
src/test/test_driver.c | 81 +++++++++++++++++++++++++++++++++++---------------
1 file changed, 57 insertions(+), 24 deletions(-)
diff --git a/src/test/test_driver.c b/src/test/test_driver.c
index 4e10eb2..89c7389 100644
--- a/src/test/test_driver.c
+++ b/src/test/test_driver.c
@@ -3646,7 +3646,8 @@ testInterfaceObjFindByName(testDriverPtr privconn,
}
-static int testConnectNumOfInterfaces(virConnectPtr conn)
+static int
+testConnectNumOfInterfaces(virConnectPtr conn)
{
testDriverPtr privconn = conn->privateData;
int ninterfaces;
@@ -3657,7 +3658,11 @@ static int testConnectNumOfInterfaces(virConnectPtr conn)
return ninterfaces;
}
-static int testConnectListInterfaces(virConnectPtr conn, char **const names, int
maxnames)
+
+static int
+testConnectListInterfaces(virConnectPtr conn,
+ char **const names,
+ int maxnames)
{
testDriverPtr privconn = conn->privateData;
int nnames;
@@ -3671,7 +3676,9 @@ static int testConnectListInterfaces(virConnectPtr conn, char
**const names, int
return nnames;
}
-static int testConnectNumOfDefinedInterfaces(virConnectPtr conn)
+
+static int
+testConnectNumOfDefinedInterfaces(virConnectPtr conn)
{
testDriverPtr privconn = conn->privateData;
int ninterfaces;
@@ -3682,7 +3689,11 @@ static int testConnectNumOfDefinedInterfaces(virConnectPtr conn)
return ninterfaces;
}
-static int testConnectListDefinedInterfaces(virConnectPtr conn, char **const names, int
maxnames)
+
+static int
+testConnectListDefinedInterfaces(virConnectPtr conn,
+ char **const names,
+ int maxnames)
{
testDriverPtr privconn = conn->privateData;
int nnames;
@@ -3696,8 +3707,10 @@ static int testConnectListDefinedInterfaces(virConnectPtr conn,
char **const nam
return nnames;
}
-static virInterfacePtr testInterfaceLookupByName(virConnectPtr conn,
- const char *name)
+
+static virInterfacePtr
+testInterfaceLookupByName(virConnectPtr conn,
+ const char *name)
{
testDriverPtr privconn = conn->privateData;
virInterfaceObjPtr iface;
@@ -3714,8 +3727,10 @@ static virInterfacePtr testInterfaceLookupByName(virConnectPtr
conn,
return ret;
}
-static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr conn,
- const char *mac)
+
+static virInterfacePtr
+testInterfaceLookupByMACString(virConnectPtr conn,
+ const char *mac)
{
testDriverPtr privconn = conn->privateData;
virInterfaceObjPtr iface;
@@ -3744,7 +3759,9 @@ static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr
conn,
return ret;
}
-static int testInterfaceIsActive(virInterfacePtr iface)
+
+static int
+testInterfaceIsActive(virInterfacePtr iface)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr obj;
@@ -3761,8 +3778,10 @@ static int testInterfaceIsActive(virInterfacePtr iface)
return ret;
}
-static int testInterfaceChangeBegin(virConnectPtr conn,
- unsigned int flags)
+
+static int
+testInterfaceChangeBegin(virConnectPtr conn,
+ unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
int ret = -1;
@@ -3788,8 +3807,10 @@ static int testInterfaceChangeBegin(virConnectPtr conn,
return ret;
}
-static int testInterfaceChangeCommit(virConnectPtr conn,
- unsigned int flags)
+
+static int
+testInterfaceChangeCommit(virConnectPtr conn,
+ unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
int ret = -1;
@@ -3816,8 +3837,10 @@ static int testInterfaceChangeCommit(virConnectPtr conn,
return ret;
}
-static int testInterfaceChangeRollback(virConnectPtr conn,
- unsigned int flags)
+
+static int
+testInterfaceChangeRollback(virConnectPtr conn,
+ unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
int ret = -1;
@@ -3848,8 +3871,10 @@ static int testInterfaceChangeRollback(virConnectPtr conn,
return ret;
}
-static char *testInterfaceGetXMLDesc(virInterfacePtr iface,
- unsigned int flags)
+
+static char *
+testInterfaceGetXMLDesc(virInterfacePtr iface,
+ unsigned int flags)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr privinterface;
@@ -3869,8 +3894,10 @@ static char *testInterfaceGetXMLDesc(virInterfacePtr iface,
}
-static virInterfacePtr testInterfaceDefineXML(virConnectPtr conn, const char *xmlStr,
- unsigned int flags)
+static virInterfacePtr
+testInterfaceDefineXML(virConnectPtr conn,
+ const char *xmlStr,
+ unsigned int flags)
{
testDriverPtr privconn = conn->privateData;
virInterfaceDefPtr def;
@@ -3897,7 +3924,9 @@ static virInterfacePtr testInterfaceDefineXML(virConnectPtr conn,
const char *xm
return ret;
}
-static int testInterfaceUndefine(virInterfacePtr iface)
+
+static int
+testInterfaceUndefine(virInterfacePtr iface)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr privinterface;
@@ -3914,8 +3943,10 @@ static int testInterfaceUndefine(virInterfacePtr iface)
return ret;
}
-static int testInterfaceCreate(virInterfacePtr iface,
- unsigned int flags)
+
+static int
+testInterfaceCreate(virInterfacePtr iface,
+ unsigned int flags)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr privinterface;
@@ -3941,8 +3972,10 @@ static int testInterfaceCreate(virInterfacePtr iface,
return ret;
}
-static int testInterfaceDestroy(virInterfacePtr iface,
- unsigned int flags)
+
+static int
+testInterfaceDestroy(virInterfacePtr iface,
+ unsigned int flags)
{
testDriverPtr privconn = iface->conn->privateData;
virInterfaceObjPtr privinterface;
--
2.9.3