diff options
author | Jim Meyering <jim@meyering.net> | 2002-08-31 08:52:10 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-08-31 08:52:10 +0000 |
commit | 4006f4e672123e0189e58d4f76b58d06ae30eb94 (patch) | |
tree | 8a56a42aaa14b061c6181b43d9b3c6d78de83f5b /src/seq.c | |
parent | 74887031996e79df07dae9711f08d80839b31e62 (diff) | |
download | coreutils-4006f4e672123e0189e58d4f76b58d06ae30eb94.tar.xz |
Change `exit (0)' to `exit (EXIT_SUCCESS)',
`exit (1)' to `exit (EXIT_FAILURE)', and
`usage (1)' to `usage (EXIT_FAILURE)'.
Diffstat (limited to 'src/seq.c')
-rw-r--r-- | src/seq.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -117,7 +117,7 @@ scan_double_arg (const char *arg) if (xstrtod (arg, NULL, &ret_val)) { error (0, 0, _("invalid floating point argument: %s"), arg); - usage (1); + usage (EXIT_FAILURE); } return ret_val; @@ -188,7 +188,7 @@ print_numbers (const char *fmt) error (0, 0, _("when the starting value is larger than the limit,\n\ the increment must be negative")); - usage (1); + usage (EXIT_FAILURE); } printf (fmt, first); @@ -212,7 +212,7 @@ the increment must be negative")); error (0, 0, _("when the starting value is smaller than the limit,\n\ the increment must be positive")); - usage (1); + usage (EXIT_FAILURE); } printf (fmt, first); @@ -402,26 +402,26 @@ main (int argc, char **argv) case_GETOPT_VERSION_CHAR (PROGRAM_NAME, AUTHORS); default: - usage (1); + usage (EXIT_FAILURE); } } if (argc - optind < 1) { error (0, 0, _("too few arguments")); - usage (1); + usage (EXIT_FAILURE); } if (3 < argc - optind) { error (0, 0, _("too many arguments")); - usage (1); + usage (EXIT_FAILURE); } if (format_str && !valid_format (format_str)) { error (0, 0, _("invalid format string: `%s'"), format_str); - usage (1); + usage (EXIT_FAILURE); } last = scan_double_arg (argv[optind++]); @@ -444,7 +444,7 @@ main (int argc, char **argv) { error (0, 0, _("\ format string may not be specified when printing equal width strings")); - usage (1); + usage (EXIT_FAILURE); } if (!step_is_set) |