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/tac.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/tac.c')
-rw-r--r-- | src/tac.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -612,7 +612,7 @@ main (int argc, char **argv) case 's': separator = optarg; if (*separator == 0) - error (1, 0, _("separator cannot be empty")); + error (EXIT_FAILURE, 0, _("separator cannot be empty")); break; default: usage (1); @@ -638,7 +638,7 @@ main (int argc, char **argv) error_message = re_compile_pattern (separator, strlen (separator), &compiled_separator); if (error_message) - error (1, 0, "%s", error_message); + error (EXIT_FAILURE, 0, "%s", error_message); } else match_length = sentinel_length = strlen (separator); @@ -678,8 +678,8 @@ main (int argc, char **argv) output ((char *) NULL, (char *) NULL); if (have_read_stdin && close (0) < 0) - error (1, errno, "-"); + error (EXIT_FAILURE, errno, "-"); if (close (1) < 0) - error (1, errno, _("write error")); + error (EXIT_FAILURE, errno, _("write error")); exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } |