diff options
Diffstat (limited to 'src/nl.c')
-rw-r--r-- | src/nl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -230,7 +230,7 @@ FORMAT is one of:\n\ \n\ ")); } - exit (status); + exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } /* Build the printf format string, based on `lineno_format'. */ @@ -578,7 +578,7 @@ main (int argc, char **argv) if (show_version) { printf ("nl - %s\n", PACKAGE_VERSION); - exit (0); + exit (EXIT_SUCCESS); } if (show_help) @@ -629,5 +629,5 @@ main (int argc, char **argv) if (ferror (stdout) || fclose (stdout) == EOF) error (1, errno, _("write error")); - exit (exit_status); + exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } |