From 4006f4e672123e0189e58d4f76b58d06ae30eb94 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 31 Aug 2002 08:52:10 +0000 Subject: Change `exit (0)' to `exit (EXIT_SUCCESS)', `exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'. --- src/nice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nice.c') 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 -- cgit v1.2.3-70-g09d2