[libvirt] [PATCHv5 2/3] leaseshelper: Refactor control flow

Eric Blake eblake at redhat.com
Wed Dec 3 16:43:11 UTC 2014


On 11/20/2014 06:58 AM, Peter Krempa wrote:
> Untangle a few conditions into a case statement and improve reporting of
> invaid commands.
> ---
>  src/network/leaseshelper.c | 100 ++++++++++++++++++++++++++-------------------
>  1 file changed, 58 insertions(+), 42 deletions(-)
> 

> +    switch ((enum virLeaseActionFlags) action) {
> +    case  VIR_LEASE_ACTION_ADD:
> +    case VIR_LEASE_ACTION_OLD:

Spacing looks odd.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list