]> xenbits.xensource.com Git - libvirt.git/commit
maint: use consistent if-else braces in remaining spots
authorEric Blake <eblake@redhat.com>
Wed, 3 Sep 2014 19:39:21 +0000 (13:39 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 4 Sep 2014 20:34:03 +0000 (14:34 -0600)
commitd194d6e7e63b0ec55e002ba1e44c57c38df46eb8
tree6abcb0ca26aab1ddece0acaa2313ad2d5440a95d
parent279b1b106d49eb5b1c99c33322ed000268c153ac
maint: use consistent if-else braces in remaining spots

I'm about to add a syntax check that enforces our documented
HACKING style of always using matching {} on if-else statements.

This patch focuses on all remaining problems, where there weren't
enough issues to warrant splitting it further.

* src/remote/remote_driver.c (doRemoteOpen): Correct use of {}.
* src/security/virt-aa-helper.c (vah_add_path, valid_path, main):
Likewise.
* src/rpc/virnetsocket.c (virNetSocketNewConnectLibSSH2):
Likewise.
* src/esx/esx_vi_types.c (esxVI_Type_FromString): Likewise.
* src/uml/uml_driver.c (umlDomainDetachDevice): Likewise.
* src/util/viralloc.c (virShrinkN): Likewise.
* src/util/virbuffer.c (virBufferURIEncodeString): Likewise.
* src/util/virdbus.c (virDBusCall): Likewise.
* src/util/virnetdev.c (virNetDevValidateConfig): Likewise.
* src/util/virnetdevvportprofile.c
(virNetDevVPortProfileGetNthParent): Likewise.
* src/util/virpci.c (virPCIDeviceIterDevices)
(virPCIDeviceWaitForCleanup)
(virPCIDeviceIsBehindSwitchLackingACS): Likewise.
* src/util/virsocketaddr.c (virSocketAddrGetNumNetmaskBits):
Likewise.
* src/util/viruri.c (virURIParseParams): Likewise.
* daemon/stream.c (daemonStreamHandleAbort): Likewise.
* tests/testutils.c (virtTestResult): Likewise.
* tests/cputest.c (cpuTestBaseline): Likewise.
* tools/virsh-domain.c (cmdDomPMSuspend): Likewise.
* tools/virsh-host.c (cmdNodeSuspend): Likewise.
* src/esx/esx_vi_generator.py (Type.generate_typefromstring):
Tweak generated code.

Signed-off-by: Eric Blake <eblake@redhat.com>
19 files changed:
daemon/stream.c
src/esx/esx_vi_generator.py
src/esx/esx_vi_types.c
src/remote/remote_driver.c
src/rpc/virnetsocket.c
src/security/virt-aa-helper.c
src/uml/uml_driver.c
src/util/viralloc.c
src/util/virbuffer.c
src/util/virdbus.c
src/util/virnetdev.c
src/util/virnetdevvportprofile.c
src/util/virpci.c
src/util/virsocketaddr.c
src/util/viruri.c
tests/cputest.c
tests/testutils.c
tools/virsh-domain.c
tools/virsh-host.c