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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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


Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]