summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-03-24 16:59:11 +0000
committerJim Meyering <jim@meyering.net>1996-03-24 16:59:11 +0000
commit818d29db9bee7b3a87d677bb4bdd520b30924fad (patch)
tree4994682f8e7be50460c142ee85321f4e5f3a29e6 /src/tail.c
parent47f70113d4342682a6408f85337676f1ccb7e8fe (diff)
downloadcoreutils-818d29db9bee7b3a87d677bb4bdd520b30924fad.tar.xz
Call error with EXIT_FAILURE (rather than `1') as first actual parameter.
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tail.c b/src/tail.c
index 3df500788..7246c5b79 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -63,7 +63,7 @@
assert ((fd) == 1); \
assert ((n_bytes) >= 0); \
if (n_bytes > 0 && fwrite ((buffer), 1, (n_bytes), stdout) == 0) \
- error (1, errno, _("write error")); \
+ error (EXIT_FAILURE, errno, _("write error")); \
} \
while (0)
@@ -537,7 +537,7 @@ output:
total += bytes_read;
}
if (bytes_read == -1)
- error (1, errno, "%s", filename);
+ error (EXIT_FAILURE, errno, "%s", filename);
if (forever)
{
fflush (stdout);
@@ -1012,8 +1012,8 @@ main (int argc, char **argv)
tail_forever (argv + fileind, argc - fileind);
if (have_read_stdin && close (0) < 0)
- error (1, errno, "-");
+ error (EXIT_FAILURE, errno, "-");
if (fclose (stdout) == EOF)
- error (1, errno, _("write error"));
+ error (EXIT_FAILURE, errno, _("write error"));
exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}