summaryrefslogtreecommitdiff
path: root/src/unexpand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unexpand.c')
-rw-r--r--src/unexpand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexpand.c b/src/unexpand.c
index fe50d324e..80e1de223 100644
--- a/src/unexpand.c
+++ b/src/unexpand.c
@@ -373,7 +373,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);
}
int
@@ -425,7 +425,7 @@ main (int argc, char **argv)
if (show_version)
{
printf ("unexpand - %s\n", PACKAGE_VERSION);
- exit (0);
+ exit (EXIT_SUCCESS);
}
if (show_help)
@@ -453,5 +453,5 @@ main (int argc, char **argv)
error (1, errno, "-");
if (fclose (stdout) == EOF)
error (1, errno, _("write error"));
- exit (exit_status);
+ exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}