maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 in "usage", too
authorJim Meyering <meyering@redhat.com>
Fri, 20 Nov 2009 11:15:14 +0000 (12:15 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 20 Nov 2009 12:14:32 +0000 (12:14 +0000)
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.

fish/fish.c
fuse/guestmount.c

index 4f51503..7dae815 100644 (file)
@@ -322,10 +322,10 @@ main (int argc, char *argv[])
       break;
 
     case HELP_OPTION:
-      usage (0);
+      usage (EXIT_SUCCESS);
 
     default:
-      usage (1);
+      usage (EXIT_FAILURE);
     }
   }
 
index 07c28c0..9f0a39e 100644 (file)
@@ -1064,10 +1064,10 @@ main (int argc, char *argv[])
       exit (EXIT_SUCCESS);
 
     case HELP_OPTION:
-      usage (0);
+      usage (EXIT_SUCCESS);
 
     default:
-      usage (1);
+      usage (EXIT_FAILURE);
     }
   }