libvirt/src/nwfilter
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
..
nwfilter_driver.c nwfilter: Force instantiation of filters upon driver reload 2012-01-27 08:19:58 -05:00
nwfilter_driver.h filter new files through cppi, so syntax-check passes once again 2010-03-26 22:47:30 +01:00
nwfilter_ebiptables_driver.c Cleanup for a return statement in source files 2012-03-26 14:45:22 -06:00
nwfilter_ebiptables_driver.h Extend rule priorities into negative numbers 2011-11-18 11:58:18 -05:00
nwfilter_gentech_driver.c Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
nwfilter_gentech_driver.h Pass the VM's UUID into the nwfilter subsystem 2011-12-08 21:35:20 -05:00
nwfilter_learnipaddr.c Rename virXXXXMacAddr to virMacAddrXXX 2012-01-27 17:53:44 +00:00
nwfilter_learnipaddr.h Enable detection of multiple IP addresses 2011-11-22 19:05:45 -05:00