diff options
Diffstat (limited to 'src/expand.c')
-rw-r--r-- | src/expand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expand.c b/src/expand.c index 702d2034c..de6aaa1c8 100644 --- a/src/expand.c +++ b/src/expand.c @@ -129,7 +129,7 @@ With no FILE, or when FILE is -, read standard input.\n\ Instead of -t NUMBER or -t LIST, -NUMBER or -LIST may be used.\n\ ")); } - exit (status); + exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } /* Add tab stop TABVAL to the end of `tab_list', except @@ -368,7 +368,7 @@ main (int argc, char **argv) if (show_version) { printf ("expand - %s\n", PACKAGE_VERSION); - exit (0); + exit (EXIT_SUCCESS); } if (show_help) @@ -397,5 +397,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); } |