Change the existing code and introduce a syntax-check rule.
Ján Tomko (24):
Indent top-level labels by one space in daemon/
Indent top-level labels by one space in examples/
Indent top-level labels by one space in src/conf/
Indent top-level labels by one space in src/cpu/
Indent top-level labels by one space in src/esx/
Indent top-level labels by one space in src/libxl/
Indent top-level labels by one space in libvirt.c
Indent top-level labels by one space in src/locking/
Indent top-level labels by one space in src/lxc/
Indent top-level labels by one space in src/network/
Indent top-level labels by one space in src/nwfilter/
Indent top-level labels by one space in src/parallels/
Indent top-level labels by one space in src/qemu/
Indent top-level labels by one space in src/remote/
Indent top-level labels by one space in src/rpc/
Indent top-level labels by one space in src/storage/
Indent top-level labels by one space in src/test/
Indent top-level labels by one space in src/util/
Indent top-level labels by one space in src/vbox/
Indent top-level labels by one space in src/xen/
Indent top-level labels by one space in the rest of src/
Indent top-level labels by one space in tests/
Indent top-level labels by one space in tools/
Add a rule for indenting labels
HACKING | 31 +-
cfg.mk | 6 +
daemon/libvirtd-config.c | 6 +-
daemon/libvirtd.c | 14 +-
daemon/remote.c | 222 +++++-----
daemon/stream.c | 4 +-
docs/hacking.html.in | 37 +-
examples/dominfo/info1.c | 2 +-
examples/domsuspend/suspend.c | 8 +-
examples/hellolibvirt/hellolibvirt.c | 8 +-
examples/openauth/openauth.c | 10 +-
src/access/viraccessdriverpolkit.c | 4 +-
src/access/viraccessmanager.c | 2 +-
src/bhyve/bhyve_command.c | 4 +-
src/bhyve/bhyve_driver.c | 26 +-
src/bhyve/bhyve_process.c | 4 +-
src/conf/capabilities.c | 6 +-
src/conf/cpu_conf.c | 12 +-
src/conf/device_conf.c | 2 +-
src/conf/domain_audit.c | 18 +-
src/conf/domain_conf.c | 222 +++++-----
src/conf/domain_event.c | 10 +-
src/conf/interface_conf.c | 20 +-
src/conf/netdev_bandwidth_conf.c | 6 +-
src/conf/netdev_vlan_conf.c | 2 +-
src/conf/netdev_vport_profile_conf.c | 4 +-
src/conf/network_conf.c | 84 ++--
src/conf/network_event.c | 2 +-
src/conf/node_device_conf.c | 30 +-
src/conf/nwfilter_conf.c | 22 +-
src/conf/nwfilter_ipaddrmap.c | 4 +-
src/conf/nwfilter_params.c | 14 +-
src/conf/object_event.c | 6 +-
src/conf/snapshot_conf.c | 12 +-
src/conf/storage_conf.c | 38 +-
src/conf/storage_encryption_conf.c | 6 +-
src/conf/virchrdev.c | 8 +-
src/cpu/cpu.c | 8 +-
src/cpu/cpu_generic.c | 6 +-
src/cpu/cpu_map.c | 6 +-
src/cpu/cpu_powerpc.c | 20 +-
src/cpu/cpu_x86.c | 50 +--
src/datatypes.c | 20 +-
src/driver.c | 2 +-
src/esx/esx_driver.c | 110 ++---
src/esx/esx_interface_driver.c | 4 +-
src/esx/esx_network_driver.c | 12 +-
src/esx/esx_storage_backend_iscsi.c | 22 +-
src/esx/esx_storage_backend_vmfs.c | 36 +-
src/esx/esx_storage_driver.c | 2 +-
src/esx/esx_util.c | 6 +-
src/esx/esx_vi.c | 86 ++--
src/esx/esx_vi_methods.c | 2 +-
src/esx/esx_vi_types.c | 18 +-
src/fdstream.c | 16 +-
src/hyperv/hyperv_driver.c | 44 +-
src/hyperv/hyperv_util.c | 2 +-
src/hyperv/hyperv_wmi.c | 4 +-
src/interface/interface_backend_netcf.c | 28 +-
src/interface/interface_backend_udev.c | 26 +-
src/libvirt-lxc.c | 6 +-
src/libvirt-qemu.c | 10 +-
src/libvirt.c | 680 +++++++++++++++---------------
src/libxl/libxl_conf.c | 18 +-
src/libxl/libxl_domain.c | 24 +-
src/libxl/libxl_driver.c | 152 +++----
src/locking/domain_lock.c | 10 +-
src/locking/lock_daemon.c | 26 +-
src/locking/lock_daemon_config.c | 4 +-
src/locking/lock_daemon_dispatch.c | 16 +-
src/locking/lock_driver_lockd.c | 18 +-
src/locking/lock_driver_sanlock.c | 20 +-
src/locking/lock_manager.c | 2 +-
src/locking/sanlock_helper.c | 2 +-
src/lxc/lxc_cgroup.c | 16 +-
src/lxc/lxc_conf.c | 6 +-
src/lxc/lxc_container.c | 42 +-
src/lxc/lxc_controller.c | 54 +--
src/lxc/lxc_driver.c | 136 +++---
src/lxc/lxc_fuse.c | 10 +-
src/lxc/lxc_monitor.c | 4 +-
src/lxc/lxc_native.c | 20 +-
src/lxc/lxc_process.c | 28 +-
src/network/bridge_driver.c | 92 ++--
src/network/bridge_driver_linux.c | 40 +-
src/node_device/node_device_driver.c | 18 +-
src/node_device/node_device_hal.c | 4 +-
src/node_device/node_device_linux_sysfs.c | 2 +-
src/node_device/node_device_udev.c | 46 +-
src/nodeinfo.c | 36 +-
src/nwfilter/nwfilter_dhcpsnoop.c | 42 +-
src/nwfilter/nwfilter_driver.c | 22 +-
src/nwfilter/nwfilter_ebiptables_driver.c | 36 +-
src/nwfilter/nwfilter_gentech_driver.c | 12 +-
src/nwfilter/nwfilter_learnipaddr.c | 8 +-
src/openvz/openvz_conf.c | 26 +-
src/openvz/openvz_driver.c | 74 ++--
src/openvz/openvz_util.c | 2 +-
src/parallels/parallels_driver.c | 64 +--
src/parallels/parallels_network.c | 22 +-
src/parallels/parallels_storage.c | 68 +--
src/parallels/parallels_utils.c | 2 +-
src/phyp/phyp_driver.c | 94 ++---
src/qemu/qemu_agent.c | 26 +-
src/qemu/qemu_capabilities.c | 50 +--
src/qemu/qemu_cgroup.c | 26 +-
src/qemu/qemu_command.c | 162 +++----
src/qemu/qemu_conf.c | 22 +-
src/qemu/qemu_domain.c | 34 +-
src/qemu/qemu_driver.c | 464 ++++++++++----------
src/qemu/qemu_hostdev.c | 6 +-
src/qemu/qemu_hotplug.c | 70 +--
src/qemu/qemu_migration.c | 106 ++---
src/qemu/qemu_monitor.c | 28 +-
src/qemu/qemu_monitor_json.c | 122 +++---
src/qemu/qemu_monitor_text.c | 100 ++---
src/qemu/qemu_process.c | 72 ++--
src/remote/remote_driver.c | 268 ++++++------
src/rpc/virkeepalive.c | 6 +-
src/rpc/virnetclient.c | 22 +-
src/rpc/virnetclientprogram.c | 6 +-
src/rpc/virnetclientstream.c | 14 +-
src/rpc/virnetmessage.c | 18 +-
src/rpc/virnetsaslcontext.c | 28 +-
src/rpc/virnetserver.c | 30 +-
src/rpc/virnetserverclient.c | 18 +-
src/rpc/virnetserverprogram.c | 8 +-
src/rpc/virnetserverservice.c | 12 +-
src/rpc/virnetsocket.c | 36 +-
src/rpc/virnetsshsession.c | 26 +-
src/rpc/virnettlscontext.c | 28 +-
src/secret/secret_driver.c | 34 +-
src/security/security_apparmor.c | 26 +-
src/security/security_dac.c | 10 +-
src/security/security_manager.c | 2 +-
src/security/security_selinux.c | 32 +-
src/security/virt-aa-helper.c | 24 +-
src/storage/storage_backend.c | 20 +-
src/storage/storage_backend_disk.c | 6 +-
src/storage/storage_backend_fs.c | 16 +-
src/storage/storage_backend_gluster.c | 12 +-
src/storage/storage_backend_iscsi.c | 12 +-
src/storage/storage_backend_logical.c | 14 +-
src/storage/storage_backend_mpath.c | 12 +-
src/storage/storage_backend_rbd.c | 14 +-
src/storage/storage_backend_scsi.c | 28 +-
src/storage/storage_backend_sheepdog.c | 10 +-
src/storage/storage_driver.c | 74 ++--
src/test/test_driver.c | 272 ++++++------
src/uml/uml_conf.c | 4 +-
src/uml/uml_driver.c | 74 ++--
src/util/iohelper.c | 6 +-
src/util/virauth.c | 6 +-
src/util/virauthconfig.c | 6 +-
src/util/virbitmap.c | 2 +-
src/util/vircgroup.c | 62 +--
src/util/virclosecallbacks.c | 4 +-
src/util/vircommand.c | 6 +-
src/util/virconf.c | 2 +-
src/util/virdbus.c | 6 +-
src/util/virdnsmasq.c | 8 +-
src/util/virerror.c | 2 +-
src/util/vireventpoll.c | 4 +-
src/util/virfile.c | 36 +-
src/util/virhostdev.c | 38 +-
src/util/viridentity.c | 8 +-
src/util/virinitctl.c | 2 +-
src/util/viriptables.c | 4 +-
src/util/viriscsi.c | 12 +-
src/util/virjson.c | 4 +-
src/util/virkeyfile.c | 8 +-
src/util/virkmod.c | 6 +-
src/util/virlockspace.c | 20 +-
src/util/virlog.c | 12 +-
src/util/virnetdev.c | 50 +--
src/util/virnetdevbandwidth.c | 10 +-
src/util/virnetdevbridge.c | 26 +-
src/util/virnetdevmacvlan.c | 22 +-
src/util/virnetdevopenvswitch.c | 8 +-
src/util/virnetdevtap.c | 10 +-
src/util/virnetdevveth.c | 4 +-
src/util/virnetdevvportprofile.c | 16 +-
src/util/virnetlink.c | 12 +-
src/util/virnodesuspend.c | 8 +-
src/util/virnuma.c | 4 +-
src/util/virobject.c | 2 +-
src/util/virpci.c | 66 +--
src/util/virpidfile.c | 16 +-
src/util/virportallocator.c | 6 +-
src/util/virprocess.c | 16 +-
src/util/virscsi.c | 8 +-
src/util/virsexpr.c | 4 +-
src/util/virsocketaddr.c | 4 +-
src/util/virstoragefile.c | 26 +-
src/util/virstring.c | 4 +-
src/util/virsysinfo.c | 16 +-
src/util/virsystemd.c | 6 +-
src/util/virthread.c | 2 +-
src/util/virthreadpool.c | 6 +-
src/util/virtpm.c | 2 +-
src/util/virtypedparam.c | 24 +-
src/util/viruri.c | 6 +-
src/util/virusb.c | 4 +-
src/util/virutil.c | 30 +-
src/util/virxml.c | 8 +-
src/vbox/vbox_MSCOMGlue.c | 6 +-
src/vbox/vbox_XPCOMCGlue.c | 2 +-
src/vbox/vbox_tmpl.c | 106 ++---
src/vmware/vmware_conf.c | 14 +-
src/vmware/vmware_driver.c | 38 +-
src/vmx/vmx.c | 36 +-
src/xen/xen_driver.c | 112 ++---
src/xen/xen_hypervisor.c | 4 +-
src/xen/xen_inotify.c | 4 +-
src/xen/xend_internal.c | 46 +-
src/xen/xm_internal.c | 28 +-
src/xen/xs_internal.c | 12 +-
src/xenapi/xenapi_driver.c | 12 +-
src/xenapi/xenapi_utils.c | 8 +-
src/xenxs/xen_sxpr.c | 22 +-
src/xenxs/xen_xm.c | 12 +-
tests/commandhelper.c | 2 +-
tests/commandtest.c | 34 +-
tests/cputest.c | 18 +-
tests/domainconftest.c | 2 +-
tests/domainsnapshotxml2xmltest.c | 6 +-
tests/esxutilstest.c | 4 +-
tests/fchosttest.c | 8 +-
tests/fdstreamtest.c | 4 +-
tests/jsontest.c | 4 +-
tests/libvirtdconftest.c | 4 +-
tests/lxcconf2xmltest.c | 4 +-
tests/lxcxml2xmltest.c | 2 +-
tests/metadatatest.c | 4 +-
tests/networkxml2conftest.c | 2 +-
tests/networkxml2xmltest.c | 2 +-
tests/networkxml2xmlupdatetest.c | 6 +-
tests/nodeinfotest.c | 8 +-
tests/nwfilterxml2xmltest.c | 2 +-
tests/objecteventtest.c | 16 +-
tests/openvzutilstest.c | 4 +-
tests/qemuagenttest.c | 18 +-
tests/qemuargv2xmltest.c | 2 +-
tests/qemucapabilitiestest.c | 6 +-
tests/qemuhelptest.c | 2 +-
tests/qemuhotplugtest.c | 4 +-
tests/qemumonitorjsontest.c | 62 +--
tests/qemumonitortestutils.c | 24 +-
tests/qemuxml2argvtest.c | 12 +-
tests/qemuxml2xmltest.c | 2 +-
tests/qemuxmlnstest.c | 2 +-
tests/secretxml2xmltest.c | 4 +-
tests/securityselinuxlabeltest.c | 6 +-
tests/securityselinuxtest.c | 4 +-
tests/sexpr2xmltest.c | 2 +-
tests/storagebackendsheepdogtest.c | 6 +-
tests/storagepoolxml2xmltest.c | 2 +-
tests/storagevolxml2argvtest.c | 4 +-
tests/storagevolxml2xmltest.c | 2 +-
tests/sysinfotest.c | 4 +-
tests/test_conf.c | 2 +-
tests/testutils.c | 2 +-
tests/testutilslxc.c | 2 +-
tests/testutilsqemu.c | 12 +-
tests/testutilsxen.c | 2 +-
tests/virauthconfigtest.c | 2 +-
tests/virbitmaptest.c | 18 +-
tests/virbuftest.c | 4 +-
tests/vircapstest.c | 4 +-
tests/vircgroupmock.c | 4 +-
tests/vircgrouptest.c | 24 +-
tests/virdbustest.c | 12 +-
tests/virendiantest.c | 4 +-
tests/virhashtest.c | 20 +-
tests/virhostdevtest.c | 20 +-
tests/viridentitytest.c | 6 +-
tests/viriscsitest.c | 4 +-
tests/virkeycodetest.c | 4 +-
tests/virkeyfiletest.c | 2 +-
tests/virkmodtest.c | 8 +-
tests/virlockspacetest.c | 14 +-
tests/virnetdevbandwidthtest.c | 2 +-
tests/virnetmessagetest.c | 10 +-
tests/virnetsockettest.c | 14 +-
tests/virnettlscontexttest.c | 2 +-
tests/virnettlssessiontest.c | 2 +-
tests/virpcimock.c | 18 +-
tests/virpcitest.c | 22 +-
tests/virportallocatortest.c | 4 +-
tests/virscsitest.c | 6 +-
tests/virshtest.c | 2 +-
tests/virstoragetest.c | 6 +-
tests/virstringtest.c | 8 +-
tests/viruritest.c | 2 +-
tests/virusbmock.c | 2 +-
tests/virusbtest.c | 4 +-
tests/vmwarevertest.c | 2 +-
tests/vmx2xmltest.c | 8 +-
tests/xmconfigtest.c | 2 +-
tests/xml2sexprtest.c | 2 +-
tests/xml2vmxtest.c | 8 +-
tools/virsh-console.c | 4 +-
tools/virsh-domain-monitor.c | 34 +-
tools/virsh-domain.c | 196 ++++-----
tools/virsh-edit.c | 6 +-
tools/virsh-host.c | 14 +-
tools/virsh-interface.c | 8 +-
tools/virsh-network.c | 14 +-
tools/virsh-nodedev.c | 14 +-
tools/virsh-nwfilter.c | 8 +-
tools/virsh-pool.c | 14 +-
tools/virsh-secret.c | 18 +-
tools/virsh-snapshot.c | 34 +-
tools/virsh-volume.c | 24 +-
tools/virsh.c | 12 +-
tools/virt-login-shell.c | 6 +-
tools/wireshark/src/packet-libvirt.c | 2 +-
317 files changed, 4063 insertions(+), 4061 deletions(-)
--
1.8.3.2