summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tail.c b/src/tail.c
index 998970561..3df500788 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -165,7 +165,7 @@ the [bkm] suffix multipliers, in which case it is treated like -c VALUE\n\
or -c +VALUE.\n\
"));
}
- exit (status);
+ exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
static void
@@ -970,7 +970,7 @@ main (int argc, char **argv)
if (show_version)
{
printf ("tail - %s\n", PACKAGE_VERSION);
- exit (0);
+ exit (EXIT_SUCCESS);
}
if (show_help)
@@ -1015,5 +1015,5 @@ main (int argc, char **argv)
error (1, errno, "-");
if (fclose (stdout) == EOF)
error (1, errno, _("write error"));
- exit (exit_status);
+ exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}