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 --- shell/ash_test/printenv.c | 6 +++--- shell/ash_test/recho.c | 2 +- shell/ash_test/zecho.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'shell/ash_test') diff --git a/shell/ash_test/printenv.c b/shell/ash_test/printenv.c index 06df21f..c4ccda8 100644 --- a/shell/ash_test/printenv.c +++ b/shell/ash_test/printenv.c @@ -45,7 +45,7 @@ main (argc, argv) { for (envp = environ; *envp; envp++) puts (*envp); - exit (0); + exit(EXIT_SUCCESS); } /* printenv varname */ @@ -59,9 +59,9 @@ main (argc, argv) if (*eval == '=') { puts (eval + 1); - exit (0); + exit(EXIT_SUCCESS); } } } - exit (1); + exit(EXIT_FAILURE); } diff --git a/shell/ash_test/recho.c b/shell/ash_test/recho.c index 02be0d7..fb48d9c 100644 --- a/shell/ash_test/recho.c +++ b/shell/ash_test/recho.c @@ -41,7 +41,7 @@ char **argv; strprint(argv[i]); printf(">\n"); } - exit(0); + exit(EXIT_SUCCESS); } void diff --git a/shell/ash_test/zecho.c b/shell/ash_test/zecho.c index 621d06d..bf876f6 100644 --- a/shell/ash_test/zecho.c +++ b/shell/ash_test/zecho.c @@ -35,5 +35,5 @@ char **argv; } putchar('\n'); - exit(0); + exit(EXIT_SUCCESS); } -- cgit v1.1