(usage): Use EXIT_SUCCESS, not 0, for clarity.

(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
This commit is contained in:
Jim Meyering committed 2004-01-21 23:14:46 +00:00
1 parent 6488b3bb56
commit f56bc12872
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
/* install - copy files and set attributes
Copyright (C) 89, 90, 91, 1995-2003 Free Software Foundation, Inc.
Copyright (C) 89, 90, 91, 1995-2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -341,7 +341,7 @@ is not a directory"),
}
}
exit (errors);
exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
/* Copy file FROM onto file TO, creating any missing parent directories of TO.
@@ -585,7 +585,7 @@ get_ids (void)
void
usage (int status)
{
if (status != 0)
if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
+3 -3
View File
@@ -1,5 +1,5 @@
/* join - join lines of two files on a common field
Copyright (C) 91, 1995-2003 Free Software Foundation, Inc.
Copyright (C) 91, 1995-2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -150,7 +150,7 @@ get_option (int argc, char **argv)
void
usage (int status)
{
if (status != 0)
if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
@@ -194,7 +194,7 @@ Important: FILE1 and FILE2 must be sorted on the join fields.\n\
"), stdout);
printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
}
exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
exit (status);
}
/* Return true if C is a blank (a default input field separator). */