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, 19 Feb 2010 14:54:20 +0000 (14:54 +0000)
commit0d78afe0caf9da2d02b211a66f7b1b36b5ad366f
tree340dce37fceeb10b7b9096abdab94ecfe08dd385
parent4457e5f3781710f4869491094afb83ed78709dbb
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.
.x-sc_prohibit_magic_number_exit [new file with mode: 0644]
hivex/hivexget.c
hivex/hivexml.c