From nobody Wed Feb 11 08:39:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1491487767994472.2977401227773; Thu, 6 Apr 2017 07:09:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AE95A804EE; Thu, 6 Apr 2017 14:09:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (unknown [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B79AB2410; Thu, 6 Apr 2017 14:09:26 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0A68E5EC68; Thu, 6 Apr 2017 14:09:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v36E9Epa018234 for ; Thu, 6 Apr 2017 10:09:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0522E9E8F2; Thu, 6 Apr 2017 14:09:14 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-116-19.phx2.redhat.com [10.3.116.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id B9B609E910 for ; Thu, 6 Apr 2017 14:09:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com AE95A804EE Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com AE95A804EE From: John Ferlan To: libvir-list@redhat.com Date: Thu, 6 Apr 2017 10:08:55 -0400 Message-Id: <20170406140855.31205-4-jferlan@redhat.com> In-Reply-To: <20170406140855.31205-1-jferlan@redhat.com> References: <20170406140855.31205-1-jferlan@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 3/3] interface: Clean up Interface section of test_driver X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Thu, 06 Apr 2017 14:09:27 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 --- 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, } =20 =20 -static int testConnectNumOfInterfaces(virConnectPtr conn) +static int +testConnectNumOfInterfaces(virConnectPtr conn) { testDriverPtr privconn =3D conn->privateData; int ninterfaces; @@ -3657,7 +3658,11 @@ static int testConnectNumOfInterfaces(virConnectPtr = conn) return ninterfaces; } =20 -static int testConnectListInterfaces(virConnectPtr conn, char **const name= s, int maxnames) + +static int +testConnectListInterfaces(virConnectPtr conn, + char **const names, + int maxnames) { testDriverPtr privconn =3D conn->privateData; int nnames; @@ -3671,7 +3676,9 @@ static int testConnectListInterfaces(virConnectPtr co= nn, char **const names, int return nnames; } =20 -static int testConnectNumOfDefinedInterfaces(virConnectPtr conn) + +static int +testConnectNumOfDefinedInterfaces(virConnectPtr conn) { testDriverPtr privconn =3D conn->privateData; int ninterfaces; @@ -3682,7 +3689,11 @@ static int testConnectNumOfDefinedInterfaces(virConn= ectPtr conn) return ninterfaces; } =20 -static int testConnectListDefinedInterfaces(virConnectPtr conn, char **con= st names, int maxnames) + +static int +testConnectListDefinedInterfaces(virConnectPtr conn, + char **const names, + int maxnames) { testDriverPtr privconn =3D conn->privateData; int nnames; @@ -3696,8 +3707,10 @@ static int testConnectListDefinedInterfaces(virConne= ctPtr conn, char **const nam return nnames; } =20 -static virInterfacePtr testInterfaceLookupByName(virConnectPtr conn, - const char *name) + +static virInterfacePtr +testInterfaceLookupByName(virConnectPtr conn, + const char *name) { testDriverPtr privconn =3D conn->privateData; virInterfaceObjPtr iface; @@ -3714,8 +3727,10 @@ static virInterfacePtr testInterfaceLookupByName(vir= ConnectPtr conn, return ret; } =20 -static virInterfacePtr testInterfaceLookupByMACString(virConnectPtr conn, - const char *mac) + +static virInterfacePtr +testInterfaceLookupByMACString(virConnectPtr conn, + const char *mac) { testDriverPtr privconn =3D conn->privateData; virInterfaceObjPtr iface; @@ -3744,7 +3759,9 @@ static virInterfacePtr testInterfaceLookupByMACString= (virConnectPtr conn, return ret; } =20 -static int testInterfaceIsActive(virInterfacePtr iface) + +static int +testInterfaceIsActive(virInterfacePtr iface) { testDriverPtr privconn =3D iface->conn->privateData; virInterfaceObjPtr obj; @@ -3761,8 +3778,10 @@ static int testInterfaceIsActive(virInterfacePtr ifa= ce) return ret; } =20 -static int testInterfaceChangeBegin(virConnectPtr conn, - unsigned int flags) + +static int +testInterfaceChangeBegin(virConnectPtr conn, + unsigned int flags) { testDriverPtr privconn =3D conn->privateData; int ret =3D -1; @@ -3788,8 +3807,10 @@ static int testInterfaceChangeBegin(virConnectPtr co= nn, return ret; } =20 -static int testInterfaceChangeCommit(virConnectPtr conn, - unsigned int flags) + +static int +testInterfaceChangeCommit(virConnectPtr conn, + unsigned int flags) { testDriverPtr privconn =3D conn->privateData; int ret =3D -1; @@ -3816,8 +3837,10 @@ static int testInterfaceChangeCommit(virConnectPtr c= onn, return ret; } =20 -static int testInterfaceChangeRollback(virConnectPtr conn, - unsigned int flags) + +static int +testInterfaceChangeRollback(virConnectPtr conn, + unsigned int flags) { testDriverPtr privconn =3D conn->privateData; int ret =3D -1; @@ -3848,8 +3871,10 @@ static int testInterfaceChangeRollback(virConnectPtr= conn, return ret; } =20 -static char *testInterfaceGetXMLDesc(virInterfacePtr iface, - unsigned int flags) + +static char * +testInterfaceGetXMLDesc(virInterfacePtr iface, + unsigned int flags) { testDriverPtr privconn =3D iface->conn->privateData; virInterfaceObjPtr privinterface; @@ -3869,8 +3894,10 @@ static char *testInterfaceGetXMLDesc(virInterfacePtr= iface, } =20 =20 -static virInterfacePtr testInterfaceDefineXML(virConnectPtr conn, const ch= ar *xmlStr, - unsigned int flags) +static virInterfacePtr +testInterfaceDefineXML(virConnectPtr conn, + const char *xmlStr, + unsigned int flags) { testDriverPtr privconn =3D conn->privateData; virInterfaceDefPtr def; @@ -3897,7 +3924,9 @@ static virInterfacePtr testInterfaceDefineXML(virConn= ectPtr conn, const char *xm return ret; } =20 -static int testInterfaceUndefine(virInterfacePtr iface) + +static int +testInterfaceUndefine(virInterfacePtr iface) { testDriverPtr privconn =3D iface->conn->privateData; virInterfaceObjPtr privinterface; @@ -3914,8 +3943,10 @@ static int testInterfaceUndefine(virInterfacePtr ifa= ce) return ret; } =20 -static int testInterfaceCreate(virInterfacePtr iface, - unsigned int flags) + +static int +testInterfaceCreate(virInterfacePtr iface, + unsigned int flags) { testDriverPtr privconn =3D iface->conn->privateData; virInterfaceObjPtr privinterface; @@ -3941,8 +3972,10 @@ static int testInterfaceCreate(virInterfacePtr iface, return ret; } =20 -static int testInterfaceDestroy(virInterfacePtr iface, - unsigned int flags) + +static int +testInterfaceDestroy(virInterfacePtr iface, + unsigned int flags) { testDriverPtr privconn =3D iface->conn->privateData; virInterfaceObjPtr privinterface; --=20 2.9.3 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list