[libvirt] [PATCH 1/2] maint: use hanging curly braces

Peter Krempa pkrempa at redhat.com
Thu Sep 4 09:14:40 UTC 2014


On 09/04/14 01:17, Eric Blake wrote:
> Our style overwhelmingly uses hanging braces (the open brace
> hangs at the end of the compound condition, rather than on
> its own line), with the primary exception of the top level function
> body.  Fix the few remaining outliers, before adding a syntax
> check in a later patch.
> 
> * src/interface/interface_backend_netcf.c (netcfStateReload)
> (netcfInterfaceClose, netcf_to_vir_err): Correct use of { in
> compound statement.
> * src/conf/domain_conf.c (virDomainHostdevDefFormatSubsys)
> (virDomainHostdevDefFormatCaps): Likewise.
> * src/network/bridge_driver.c (networkAllocateActualDevice):
> Likewise.
> * src/util/virfile.c (virBuildPathInternal): Likewise.
> * src/util/virnetdev.c (virNetDevGetVirtualFunctions): Likewise.
> * src/util/virnetdevmacvlan.c
> (virNetDevMacVLanVPortProfileCallback): Likewise.
> * src/util/virtypedparam.c (virTypedParameterAssign): Likewise.
> * src/util/virutil.c (virGetWin32DirectoryRoot)
> (virFileWaitForDevices): Likewise.
> * src/vbox/vbox_common.c (vboxDumpNetwork): Likewise.
> * tests/seclabeltest.c (main): Likewise.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
>  src/conf/domain_conf.c                  | 6 ++----
>  src/interface/interface_backend_netcf.c | 9 +++------
>  src/network/bridge_driver.c             | 3 +--
>  src/util/virfile.c                      | 3 +--
>  src/util/virnetdev.c                    | 3 +--
>  src/util/virnetdevmacvlan.c             | 5 ++---
>  src/util/virtypedparam.c                | 3 +--
>  src/util/virutil.c                      | 6 ++----
>  src/vbox/vbox_common.c                  | 4 ++--
>  tests/seclabeltest.c                    | 6 ++----
>  10 files changed, 17 insertions(+), 31 deletions(-)
> 

ACK,

Peter


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140904/9cc3eb99/attachment-0001.sig>


More information about the libvir-list mailing list