diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-24 16:59:11 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-24 16:59:11 +0000 |
commit | 818d29db9bee7b3a87d677bb4bdd520b30924fad (patch) | |
tree | 4994682f8e7be50460c142ee85321f4e5f3a29e6 /src/expand.c | |
parent | 47f70113d4342682a6408f85337676f1ccb7e8fe (diff) | |
download | coreutils-818d29db9bee7b3a87d677bb4bdd520b30924fad.tar.xz |
Call error with EXIT_FAILURE (rather than `1') as first actual parameter.
Diffstat (limited to 'src/expand.c')
-rw-r--r-- | src/expand.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/expand.c b/src/expand.c index de6aaa1c8..4103ea6c6 100644 --- a/src/expand.c +++ b/src/expand.c @@ -168,7 +168,7 @@ parse_tabstops (char *stops) tabval = tabval * 10 + *stops - '0'; } else - error (1, 0, _("tab size contains an invalid character")); + error (EXIT_FAILURE, 0, _("tab size contains an invalid character")); } add_tabstop (tabval); @@ -186,9 +186,9 @@ validate_tabstops (int *tabs, int entries) for (i = 0; i < entries; i++) { if (tabs[i] == 0) - error (1, 0, _("tab size cannot be 0")); + error (EXIT_FAILURE, 0, _("tab size cannot be 0")); if (tabs[i] <= prev_tab) - error (1, 0, _("tab sizes must be ascending")); + error (EXIT_FAILURE, 0, _("tab sizes must be ascending")); prev_tab = tabs[i]; } } @@ -393,9 +393,9 @@ main (int argc, char **argv) expand (); if (have_read_stdin && fclose (stdin) == EOF) - error (1, errno, "-"); + error (EXIT_FAILURE, errno, "-"); if (ferror (stdout) || fclose (stdout) == EOF) - error (1, errno, _("write error")); + error (EXIT_FAILURE, errno, _("write error")); exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } |