diff options
Diffstat (limited to 'src/nice.c')
-rw-r--r-- | src/nice.c | 6 |
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 |