]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: cleanup return codes in nwfilter subsystem
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 9 Dec 2011 02:26:34 +0000 (21:26 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 9 Dec 2011 02:26:34 +0000 (21:26 -0500)
commit95ff5899b97fd3a0ad4d141e6679fc0d79726cdd
tree572dd8ad1cfae2f1095df7cae74da5687b5f741a
parentf582199e60cb090c1267aa310d361a22ab8e6484
nwfilter: cleanup return codes in nwfilter subsystem

This patch cleans up return codes in the nwfilter subsystem.

Some functions in nwfilter_conf.c (validators and formatters) are
keeping their bool return for now and I am converting their return
code to true/false.

All other functions now have failure return codes of -1 and success
of 0.

[I searched for all occurences of ' 1;' and checked all 'if ' and
adapted where needed. After that I did a grep for 'NWFilter' in the source
tree.]
src/conf/nwfilter_conf.c
src/conf/nwfilter_params.c
src/nwfilter/nwfilter_driver.c
src/nwfilter/nwfilter_ebiptables_driver.c
src/nwfilter/nwfilter_gentech_driver.c
src/nwfilter/nwfilter_gentech_driver.h
src/nwfilter/nwfilter_learnipaddr.c
src/qemu/qemu_command.c
src/qemu/qemu_process.c
src/uml/uml_conf.c