According to previous discussions it looks like this is the preferred way of casting. One difference to the previous one is that this time I tuned the regexp a bit so that it doesn't match some macros and assignments and it also matches structs. Feel free to require squashing of some small patches together. Martin Kletzander (30): examples/: Remove spaces after casts access/: Remove spaces after casts admin/: Remove spaces after casts conf/: Remove spaces after casts cpu/: Remove spaces after casts esx/: Remove spaces after casts hyperv/: Remove spaces after casts libxl/: Remove spaces after casts locking/: Remove spaces after casts lxc/: Remove spaces after casts network/: Remove spaces after casts nwfilter/: Remove spaces after casts phyp/: Remove spaces after casts qemu/: Remove spaces after casts remote/: Remove spaces after casts rpc/: Remove spaces after casts security/: Remove spaces after casts storage/: Remove spaces after casts test/: Remove spaces after casts uml/: Remove spaces after casts util/: Remove spaces after casts vbox/: Remove spaces after casts vmx/: Remove spaces after casts vz/: Remove spaces after casts xenapi/: Remove spaces after casts xenconfig/: Remove spaces after casts tests/: Remove spaces after casts tools/: Remove spaces after casts Remove spaces after casts in rest of the files Prohibit space after cast cfg.mk | 6 + docs/hacking.html.in | 9 + examples/object-events/event-test.c | 34 +- src/access/viraccessdriverpolkit.c | 2 +- src/admin/admin_remote.c | 54 +-- src/admin/admin_server_dispatch.c | 8 +- src/conf/cpu_conf.c | 6 +- src/conf/device_conf.c | 2 +- src/conf/domain_audit.c | 4 +- src/conf/domain_conf.c | 88 ++-- src/conf/interface_conf.c | 4 +- src/conf/network_conf.c | 4 +- src/conf/nwfilter_params.c | 4 +- src/conf/storage_conf.c | 48 +- src/conf/virchrdev.c | 4 +- src/conf/virnodedeviceobj.c | 4 +- src/conf/virsecretobj.c | 2 +- src/conf/virstorageobj.c | 4 +- src/cpu/cpu_ppc64.c | 4 +- src/esx/esx_driver.c | 2 +- src/hyperv/hyperv_driver.c | 8 +- src/hyperv/hyperv_wmi.c | 24 +- src/internal.h | 4 +- src/libvirt-domain.c | 4 +- src/libvirt-host.c | 2 +- src/libvirt-lxc.c | 4 +- src/libvirt-stream.c | 4 +- src/libxl/libxl_conf.c | 4 +- src/locking/lock_driver_sanlock.c | 28 +- src/lxc/lxc_cgroup.c | 2 +- src/lxc/lxc_controller.c | 4 +- src/lxc/lxc_domain.c | 4 +- src/lxc/lxc_driver.c | 4 +- src/lxc/lxc_monitor.c | 2 +- src/lxc/lxc_native.c | 4 +- src/lxc/lxc_process.c | 4 +- src/network/bridge_driver.c | 4 +- src/nwfilter/nwfilter_dhcpsnoop.c | 6 +- src/phyp/phyp_driver.c | 2 +- src/qemu/qemu_agent.c | 4 +- src/qemu/qemu_alias.c | 2 +- src/qemu/qemu_block.c | 2 +- src/qemu/qemu_capabilities.c | 20 +- src/qemu/qemu_command.c | 18 +- src/qemu/qemu_domain.c | 32 +- src/qemu/qemu_domain_address.c | 12 +- src/qemu/qemu_driver.c | 68 +-- src/qemu/qemu_hostdev.c | 2 +- src/qemu/qemu_hotplug.c | 8 +- src/qemu/qemu_migration.c | 2 +- src/qemu/qemu_monitor.c | 2 +- src/qemu/qemu_monitor_json.c | 4 +- src/qemu/qemu_parse_command.c | 6 +- src/qemu/qemu_process.c | 10 +- src/remote/remote_daemon_dispatch.c | 50 +- src/remote/remote_daemon_stream.c | 2 +- src/remote/remote_driver.c | 620 ++++++++++++------------- src/remote/remote_protocol.x | 18 +- src/rpc/virnetclientstream.c | 4 +- src/rpc/virnetserverclient.c | 2 +- src/rpc/virnetserverprogram.c | 2 +- src/rpc/virnetsocket.c | 6 +- src/security/security_apparmor.c | 6 +- src/security/security_dac.c | 42 +- src/security/security_selinux.c | 14 +- src/security/virt-aa-helper.c | 2 +- src/storage/storage_backend_fs.c | 2 +- src/storage/storage_backend_gluster.c | 6 +- src/storage/storage_backend_logical.c | 2 +- src/storage/storage_backend_vstorage.c | 6 +- src/storage/storage_driver.c | 6 +- src/storage/storage_util.c | 44 +- src/test/test_driver.c | 4 +- src/uml/uml_driver.c | 6 +- src/util/iohelper.c | 2 +- src/util/viralloc.h | 12 +- src/util/virarptable.c | 2 +- src/util/viratomic.h | 14 +- src/util/virbitmap.c | 4 +- src/util/virbuffer.c | 2 +- src/util/vircgroup.c | 10 +- src/util/vircommand.c | 4 +- src/util/virdnsmasq.c | 2 +- src/util/virfdstream.c | 6 +- src/util/virfile.c | 46 +- src/util/virfirmware.c | 4 +- src/util/virhostcpu.c | 2 +- src/util/virhostmem.c | 8 +- src/util/viridentity.c | 2 +- src/util/virjson.c | 4 +- src/util/virlog.c | 8 +- src/util/virmacaddr.c | 2 +- src/util/virmacmap.c | 2 +- src/util/virnetdev.c | 4 +- src/util/virnetdevtap.c | 2 +- src/util/virobject.c | 2 +- src/util/virpidfile.c | 6 +- src/util/virpolkit.c | 4 +- src/util/virprocess.c | 26 +- src/util/virresctrl.c | 4 +- src/util/virsexpr.c | 8 +- src/util/virstoragefile.c | 8 +- src/util/virstring.c | 14 +- src/util/virsysinfo.c | 2 +- src/util/virsystemd.c | 4 +- src/util/virthreadjob.c | 4 +- src/util/virthreadpool.c | 4 +- src/util/virtime.c | 4 +- src/util/virutil.c | 26 +- src/util/virutil.h | 6 +- src/util/virxml.c | 30 +- src/vbox/vbox_common.c | 4 +- src/vbox/vbox_tmpl.c | 2 +- src/vmx/vmx.c | 4 +- src/vz/vz_utils.h | 2 +- src/xenapi/xenapi_driver.c | 4 +- src/xenconfig/xen_common.c | 4 +- src/xenconfig/xen_xl.c | 2 +- tests/domaincapstest.c | 4 +- tests/qemuhotplugtest.c | 2 +- tests/qemumonitorjsontest.c | 42 +- tests/qemuxml2argvtest.c | 4 +- tests/testutils.c | 2 +- tests/testutils.h | 2 +- tests/testutilshostcpus.h | 88 ++-- tests/virbitmaptest.c | 4 +- tests/vircaps2xmltest.c | 2 +- tests/virfiletest.c | 18 +- tests/virfilewrapper.c | 2 +- tests/virhashtest.c | 8 +- tests/virhostcputest.c | 2 +- tests/virhostdevtest.c | 2 +- tests/virpcimock.c | 2 +- tests/virpcitest.c | 2 +- tests/virresctrltest.c | 2 +- tests/virschematest.c | 2 +- tests/virstoragetest.c | 42 +- tests/virstringtest.c | 12 +- tests/virusbmock.c | 2 +- tools/nss/libvirt_nss.c | 14 +- tools/virsh-domain-monitor.c | 14 +- tools/virsh-domain.c | 16 +- tools/virsh-interface.c | 12 +- tools/virsh-network.c | 10 +- tools/virsh-nodedev.c | 14 +- tools/virsh-nwfilter.c | 6 +- tools/virsh-pool.c | 36 +- tools/virsh-secret.c | 6 +- tools/virsh-util.c | 4 +- tools/virsh-volume.c | 16 +- tools/virt-admin.c | 4 +- tools/vsh.c | 18 +- 152 files changed, 1097 insertions(+), 1082 deletions(-) -- 2.17.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list