libvirt/src/util
Martin Kletzander 9943276fd2 Cleanup for a return statement in source files
Return statements with parameter enclosed in parentheses were modified
and parentheses were removed. The whole change was scripted, here is how:

List of files was obtained using this command:
git grep -l -e '\<return\s*([^()]*\(([^()]*)[^()]*\)*)\s*;' |             \
grep -e '\.[ch]$' -e '\.py$'

Found files were modified with this command:
sed -i -e                                                                 \
's_^\(.*\<return\)\s*(\(\([^()]*([^()]*)[^()]*\)*\))\s*\(;.*$\)_\1 \2\4_' \
-e 's_^\(.*\<return\)\s*(\([^()]*\))\s*\(;.*$\)_\1 \2\3_'

Then checked for nonsense.

The whole command looks like this:
git grep -l -e '\<return\s*([^()]*\(([^()]*)[^()]*\)*)\s*;' |             \
grep -e '\.[ch]$' -e '\.py$' | xargs sed -i -e                            \
's_^\(.*\<return\)\s*(\(\([^()]*([^()]*)[^()]*\)*\))\s*\(;.*$\)_\1 \2\4_' \
-e 's_^\(.*\<return\)\s*(\([^()]*\))\s*\(;.*$\)_\1 \2\3_'
2012-03-26 14:45:22 -06:00
..
bitmap.c
bitmap.h
buf.c qemu: support disk filenames with comma 2012-03-12 08:09:37 -06:00
buf.h qemu: support disk filenames with comma 2012-03-12 08:09:37 -06:00
cgroup.c cpustats: collect VM user and sys times 2012-03-12 08:46:56 -06:00
cgroup.h cpustats: collect VM user and sys times 2012-03-12 08:46:56 -06:00
command.c build: fix output of pid values 2012-03-02 06:57:57 -07:00
command.h util: add functions to keep capabilities 2012-01-31 13:36:28 -05:00
conf.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
conf.h
dnsmasq.c maint: fix improper use of 'an' 2011-12-03 17:11:56 -07:00
dnsmasq.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
ebtables.c
ebtables.h
event_poll.c util: fix a typo 2012-02-29 17:42:18 +08:00
event_poll.h
event.c Introduce virConnectSetKeepAlive 2011-11-24 11:44:08 +01:00
event.h
hooks.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
hooks.h qemu: Add pre-migration hook 2012-02-29 12:27:12 +01:00
hostusb.c qemu: Keep list of USB devices attached to domains 2011-12-24 18:12:04 +01:00
hostusb.h qemu: Keep list of USB devices attached to domains 2011-12-24 18:12:04 +01:00
iohelper.c Introduce new API for generating random numbers 2012-01-26 14:03:14 +00:00
iptables.c maint: fix improper use of 'an' 2011-12-03 17:11:56 -07:00
iptables.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
json.c
json.h
keymaps.csv Rsync keymaps.csv file with GTK-VNC 2012-01-12 20:44:55 +00:00
logging.c Cast pointer to int using intptr_t 2012-01-25 18:00:47 -07:00
logging.h logging: Do not log timestamp through syslog 2011-09-29 13:42:34 +02:00
memory.c
memory.h
pci.c util: consolidate duplicated error messages in pci.c 2012-03-08 16:59:29 -05:00
pci.h util: two new pci util functions 2012-03-06 06:03:46 -05:00
processinfo.c
processinfo.h
sexpr.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
sexpr.h
stats_linux.c
stats_linux.h
storage_file.c Introduce virStorageFileIsClusterFS 2012-02-23 14:23:45 +01:00
storage_file.h Introduce virStorageFileIsClusterFS 2012-02-23 14:23:45 +01:00
sysinfo.c Implement sysinfo on PowerPC. 2012-03-23 21:56:20 +08:00
sysinfo.h snapshot: simplify indentation of sysinfo 2011-10-20 16:02:16 -06:00
threadpool.c threadpool: Use while loop on virCondWait 2011-12-09 19:33:11 +01:00
threadpool.h
threads-pthread.c threads: check for failure to set thread-local value 2012-01-19 13:14:10 -07:00
threads-pthread.h
threads-win32.c Cast pointer to int using intptr_t 2012-01-25 18:00:47 -07:00
threads-win32.h build: fix header order on mingw 2012-01-25 15:05:45 -07:00
threads.c
threads.h threads: check for failure to set thread-local value 2012-01-19 13:14:10 -07:00
util.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
util.h util: new function for scaling numbers 2012-03-07 18:24:43 -07:00
uuid.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
uuid.h build: add compiler attributes to virUUIDParse 2011-10-13 12:23:37 -06:00
viraudit.c
viraudit.h
virauth.c Lookup auth credentials in config file before prompting 2012-03-23 13:24:07 +00:00
virauth.h Lookup auth credentials in config file before prompting 2012-03-23 13:24:07 +00:00
virauthconfig.c Add helper API for finding auth file path 2012-03-23 13:24:07 +00:00
virauthconfig.h Add helper API for finding auth file path 2012-03-23 13:24:07 +00:00
virfile.c util: Generalize virFileDirectFd 2012-02-08 11:26:20 +01:00
virfile.h Fix compilation on MacOS X 2012-02-20 11:21:00 +08:00
virhash.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
virhash.h util: Include stdint.h because of uint32_t 2012-01-26 19:14:01 +01:00
virhashcode.c build: avoid gcc 4.7 warning about inlines 2012-02-06 20:06:37 -07:00
virhashcode.h util: Include stdint.h because of uint32_t 2012-01-26 19:14:01 +01:00
virkeycode-mapgen.py
virkeycode.c
virkeycode.h
virkeyfile.c Add a virKeyfilePtr object for parsing '.ini' files 2012-03-23 13:24:06 +00:00
virkeyfile.h Add a virKeyfilePtr object for parsing '.ini' files 2012-03-23 13:24:06 +00:00
virmacaddr.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
virmacaddr.h conf: forbid use of multicast mac addresses 2012-03-19 20:33:30 -04:00
virnetdev.c util: standardize return from functions calling virNetlinkCommand 2012-03-08 16:58:34 -05:00
virnetdev.h util: support functions for mac/portprofile associations on hostdev 2012-03-06 06:03:51 -05:00
virnetdevbandwidth.c bandwidth: Fix funky identation 2011-11-29 14:26:14 +01:00
virnetdevbandwidth.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virnetdevbridge.c bridge: Fix forward delay APIs 2011-12-09 13:57:45 +01:00
virnetdevbridge.h Split bridge.h into three separate files 2011-11-09 16:34:25 +00:00
virnetdevmacvlan.c util: standardize return from functions calling virNetlinkCommand 2012-03-08 16:58:34 -05:00
virnetdevmacvlan.h Allow creation of plain macvlan devices 2011-11-18 16:10:37 +00:00
virnetdevopenvswitch.c util: log error on OOM in virNetDevOpenvswitchAddPort 2012-03-08 14:44:24 -05:00
virnetdevopenvswitch.h Attach vm-id to Open vSwitch interfaces. 2012-03-08 14:44:15 -05:00
virnetdevtap.c util: fail attempts to use same mac address for guest and tap 2012-03-19 20:33:30 -04:00
virnetdevtap.h Attach vm-id to Open vSwitch interfaces. 2012-03-08 14:44:15 -05:00
virnetdevveth.c Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
virnetdevveth.h Move LXC veth.c code into shared utility APIs 2011-11-15 10:28:02 +00:00
virnetdevvportprofile.c util: standardize return from functions calling virNetlinkCommand 2012-03-08 16:58:34 -05:00
virnetdevvportprofile.h util: Changes to support portprofiles for hostdevs 2012-03-06 06:03:57 -05:00
virnetlink.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
virnetlink.h util: support functions for mac/portprofile associations on hostdev 2012-03-06 06:03:51 -05:00
virnodesuspend.c Don't mark suspend as active until we know it is running 2011-11-30 10:12:30 +00:00
virnodesuspend.h Move suspend capabilities APIs out of util.h into virnodesuspend.c 2011-11-30 10:12:29 +00:00
virpidfile.c pidfile: Make checking binary path in virPidFileRead optional 2012-02-27 15:05:16 +01:00
virpidfile.h
virrandom.c util: remove unneeded #include in virrandom.c 2012-03-01 12:44:12 -05:00
virrandom.h npiv: Auto-generate WWN if it's not specified 2012-02-10 12:53:25 +08:00
virsocketaddr.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
virsocketaddr.h Split src/util/network.{c,h} into 5 pieces 2011-11-15 10:27:54 +00:00
virterror_internal.h error: drop old-style error reporting 2012-01-19 13:26:04 -07:00
virterror.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
virtime.c Don't use undocumented __isleap macro 2011-12-01 13:28:44 +00:00
virtime.h Add internal APIs for dealing with time 2011-11-30 11:43:49 +00:00
virtypedparam.c maint: enforce use of _LAST marker 2012-01-20 16:16:04 -07:00
virtypedparam.h cpustats: report user and sys times 2012-03-12 08:46:56 -06:00
viruri.c Fix and test round-trip of query parameters 2012-03-26 11:23:45 +01:00
viruri.h Store parsed query parameters directly in the virURIPtr struct 2012-03-23 13:23:12 +00:00
xml.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
xml.h build: fix build with older libxml2 2011-12-08 11:37:24 +08:00