summaryrefslogtreecommitdiff
path: root/src/nl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nl.c')
-rw-r--r--src/nl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nl.c b/src/nl.c
index b4e277bc8..591e01531 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -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);
}