Re: [PATCH] Remove curly braces on all single-line conditional jumps in dispatcher

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

 



On 04/13/2011 12:13 PM, Daniel P. Berrange wrote:
> Replace all occurrances of
> 
>    if (....) {
>       goto cleanup;
>    }
> 
> With
> 
>    if (.....)
>       goto cleanup;
> 
> to save one line of code
> 
> * daemon/remote.c: Remove curly braces on single line conditionals
> ---
>  daemon/remote.c |  951 ++++++++++++++++++------------------------------------
>  1 files changed, 317 insertions(+), 634 deletions(-)

The diffstat agrees with your claim.

Looks fairly mechanical.  ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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]