diff options
Diffstat (limited to 'shell/ash_test/printenv.c')
-rw-r--r-- | shell/ash_test/printenv.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |