]> xenbits.xensource.com Git - libvirt.git/commit
maint: use consistent if-else braces in lxc, vbox, phyp
authorEric Blake <eblake@redhat.com>
Wed, 3 Sep 2014 19:28:14 +0000 (13:28 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 4 Sep 2014 14:53:21 +0000 (08:53 -0600)
commit279b1b106d49eb5b1c99c33322ed000268c153ac
tree3667ff94dacf5c4eb1b7a8469eaee26933c43ab3
parentfb6d6507178c9f1326f47a740199cd2d2a14168c
maint: use consistent if-else braces in lxc, vbox, phyp

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 drivers that had several issues.

* src/lxc/lxc_fuse.c (lxcProcGetattr, lxcProcReadMeminfo): Correct
use of {}.
* src/lxc/lxc_driver.c (lxcDomainMergeBlkioDevice): Likewise.
* src/phyp/phyp_driver.c (phypConnectNumOfDomainsGeneric)
(phypUUIDTable_Init, openSSHSession, phypStoragePoolListVolumes)
(phypConnectListStoragePools, phypDomainSetVcpusFlags)
(phypStorageVolGetXMLDesc, phypStoragePoolGetXMLDesc)
(phypConnectListDefinedDomains): Likewise.
* src/vbox/vbox_common.c (vboxAttachSound, vboxDumpDisplay)
(vboxDomainRevertToSnapshot, vboxDomainSnapshotDelete): Likewise.
* src/vbox/vbox_tmpl.c (vboxStorageVolGetXMLDesc): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/lxc/lxc_driver.c
src/lxc/lxc_fuse.c
src/phyp/phyp_driver.c
src/vbox/vbox_common.c
src/vbox/vbox_tmpl.c