maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 to exit
authorJim Meyering <meyering@redhat.com>
Fri, 20 Nov 2009 11:09:42 +0000 (12:09 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 20 Nov 2009 12:14:14 +0000 (12:14 +0000)
commitc372c7c23a298a940b8a0868396ef2ae0d824e4d
tree2c6bec16fd926e0bfd357c2623864f19f666decf
parente94f89f40d989d111882178c87b5bfc22314fca8
maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 to exit

Convert all uses automatically, via these two commands:
git grep -l '\<exit *(1)' \
  | grep -vEf .x-sc_prohibit_magic_number_exit \
  | xargs --no-run-if-empty \
    perl -pi -e 's/\b(exit ?)\(1\)/$1(EXIT_FAILURE)/'
git grep -l '\<exit *(0)' \
  | grep -vEf .x-sc_prohibit_magic_number_exit \
  | xargs --no-run-if-empty \
  perl -pi -e 's/\b(exit ?)\(0\)/$1(EXIT_SUCCESS)/'
* .x-sc_prohibit_magic_number_exit: New file.

Edit (RWMJ): Don't change Java code.
16 files changed:
.x-sc_prohibit_magic_number_exit [new file with mode: 0644]
capitests/test-command.c
daemon/guestfsd.c
daemon/proto.c
examples/hello.c
examples/to-xml.c
fish/fish.c
fish/rc.c
fish/tilde.c
fuse/dircache.c
fuse/guestmount.c
hivex/hivexget.c
hivex/hivexml.c
src/generator.ml
test-tool/helper.c
test-tool/test-tool.c