summaryrefslogtreecommitdiff
path: root/src/pr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pr.c')
-rw-r--r--src/pr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pr.c b/src/pr.c
index fb6b7c8a2..02a3fe816 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -617,7 +617,7 @@ main (int argc, char **argv)
if (show_version)
{
printf ("pr - %s\n", PACKAGE_VERSION);
- exit (0);
+ exit (EXIT_SUCCESS);
}
if (show_help)
@@ -661,7 +661,7 @@ main (int argc, char **argv)
error (1, errno, _("write error"));
if (failed_opens > 0)
exit(1);
- exit (0);
+ exit (EXIT_SUCCESS);
}
/* Parse options of the form -scNNN.
@@ -1884,5 +1884,5 @@ Paginate or columnate FILE(s) for printing.\n\
spaces. With no FILE, or when FILE is -, read standard input.\n\
"));
}
- exit (status);
+ exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}