summaryrefslogtreecommitdiff
path: root/src/nice.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-31 08:52:10 +0000
committerJim Meyering <jim@meyering.net>2002-08-31 08:52:10 +0000
commit4006f4e672123e0189e58d4f76b58d06ae30eb94 (patch)
tree8a56a42aaa14b061c6181b43d9b3c6d78de83f5b /src/nice.c
parent74887031996e79df07dae9711f08d80839b31e62 (diff)
downloadcoreutils-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/nice.c')
-rw-r--r--src/nice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nice.c b/src/nice.c
index 13122d92f..f8b5b85f2 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -139,7 +139,7 @@ main (int argc, char **argv)
switch (optc)
{
case '?':
- usage (1);
+ usage (EXIT_FAILURE);
case 'n':
if (xstrtol (optarg, NULL, 10, &adjustment, "")
@@ -169,7 +169,7 @@ main (int argc, char **argv)
if (adjustment_given)
{
error (0, 0, _("a command must be given with an adjustment"));
- usage (1);
+ usage (EXIT_FAILURE);
}
/* No command given; print the priority. */
errno = 0;
@@ -177,7 +177,7 @@ main (int argc, char **argv)
if (current_priority == -1 && errno != 0)
error (EXIT_FAILURE, errno, _("cannot get priority"));
printf ("%d\n", current_priority);
- exit (0);
+ exit (EXIT_SUCCESS);
}
#ifndef NICE_PRIORITY