From 636a1f85e89432601c59cdc3239fc867b4adf051 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 19 May 2008 09:29:47 +0000 Subject: - use EXIT_{SUCCESS,FAILURE}. No object-code changes --- coreutils/cal.c | 2 +- coreutils/env.c | 2 +- coreutils/printenv.c | 2 +- coreutils/printf.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'coreutils') diff --git a/coreutils/cal.c b/coreutils/cal.c index 8a08a9ae7..8a93057b0 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c @@ -179,7 +179,7 @@ int cal_main(int argc, char **argv) } } - fflush_stdout_and_exit(0); + fflush_stdout_and_exit(EXIT_SUCCESS); } /* diff --git a/coreutils/env.c b/coreutils/env.c index 20cf348d6..e21740d98 100644 --- a/coreutils/env.c +++ b/coreutils/env.c @@ -85,7 +85,7 @@ int env_main(int argc ATTRIBUTE_UNUSED, char **argv) puts(*ep); } - fflush_stdout_and_exit(0); + fflush_stdout_and_exit(EXIT_SUCCESS); } /* diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 31d76d712..2fc01f22f 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c @@ -29,5 +29,5 @@ int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv) } } - fflush_stdout_and_exit(0); + fflush_stdout_and_exit(EXIT_SUCCESS); } diff --git a/coreutils/printf.c b/coreutils/printf.c index a12f7cae7..7c7613152 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -266,7 +266,7 @@ static char **print_formatted(char *format, char **argv) break; case '\\': if (*++f == 'c') - exit(0); + exit(EXIT_SUCCESS); bb_putchar(bb_process_escape_sequence((const char **)&f)); f--; break; -- cgit v1.2.3