summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-20 12:15:14 +0100
committerRichard Jones <rjones@redhat.com>2009-11-20 12:14:32 +0000
commit4d45c45f0928c7791429d351dc69b75167888f7d (patch)
treed023027c9596cd7089e66a08fe9d58a068e5f148 /fish
parentc372c7c23a298a940b8a0868396ef2ae0d824e4d (diff)
downloadlibguestfs-4d45c45f0928c7791429d351dc69b75167888f7d.tar.gz
libguestfs-4d45c45f0928c7791429d351dc69b75167888f7d.tar.xz
libguestfs-4d45c45f0928c7791429d351dc69b75167888f7d.zip
maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 in "usage", too
Convert by running these commands: perl -pi -e 's/\b(usage ?)\(1\)/$1(EXIT_FAILURE)/' \ fish/fish.c fuse/guestmount.c perl -pi -e 's/\b(usage ?)\(0\)/$1(EXIT_SUCCESS)/' \ fish/fish.c fuse/guestmount.c * fish/fish.c (main): Replace 0/1 with EXIT_SUCCESS/EXIT_FAILURE. * fuse/guestmount.c (main): Likewise.
Diffstat (limited to 'fish')
-rw-r--r--fish/fish.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/fish.c b/fish/fish.c
index 4f515033..7dae815d 100644
--- a/fish/fish.c
+++ b/fish/fish.c
@@ -322,10 +322,10 @@ main (int argc, char *argv[])
break;
case HELP_OPTION:
- usage (0);
+ usage (EXIT_SUCCESS);
default:
- usage (1);
+ usage (EXIT_FAILURE);
}
}