diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-19 09:29:47 +0000 |
commit | 636a1f85e89432601c59cdc3239fc867b4adf051 (patch) | |
tree | d43c9ca120c29bf2d4567b1bb0674c6a8bae2b6d /shell/ash_test | |
parent | cb83abd7b6b052224c1f3b998e863aac76914afd (diff) | |
download | busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.gz busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.tar.bz2 busybox-w32-636a1f85e89432601c59cdc3239fc867b4adf051.zip |
- use EXIT_{SUCCESS,FAILURE}. No object-code changes
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/printenv.c | 6 | ||||
-rw-r--r-- | shell/ash_test/recho.c | 2 | ||||
-rw-r--r-- | shell/ash_test/zecho.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/shell/ash_test/printenv.c b/shell/ash_test/printenv.c index 06df21fdc..c4ccda8a6 100644 --- a/shell/ash_test/printenv.c +++ b/shell/ash_test/printenv.c | |||
@@ -45,7 +45,7 @@ main (argc, argv) | |||
45 | { | 45 | { |
46 | for (envp = environ; *envp; envp++) | 46 | for (envp = environ; *envp; envp++) |
47 | puts (*envp); | 47 | puts (*envp); |
48 | exit (0); | 48 | exit(EXIT_SUCCESS); |
49 | } | 49 | } |
50 | 50 | ||
51 | /* printenv varname */ | 51 | /* printenv varname */ |
@@ -59,9 +59,9 @@ main (argc, argv) | |||
59 | if (*eval == '=') | 59 | if (*eval == '=') |
60 | { | 60 | { |
61 | puts (eval + 1); | 61 | puts (eval + 1); |
62 | exit (0); | 62 | exit(EXIT_SUCCESS); |
63 | } | 63 | } |
64 | } | 64 | } |
65 | } | 65 | } |
66 | exit (1); | 66 | exit(EXIT_FAILURE); |
67 | } | 67 | } |
diff --git a/shell/ash_test/recho.c b/shell/ash_test/recho.c index 02be0d760..fb48d9c48 100644 --- a/shell/ash_test/recho.c +++ b/shell/ash_test/recho.c | |||
@@ -41,7 +41,7 @@ char **argv; | |||
41 | strprint(argv[i]); | 41 | strprint(argv[i]); |
42 | printf(">\n"); | 42 | printf(">\n"); |
43 | } | 43 | } |
44 | exit(0); | 44 | exit(EXIT_SUCCESS); |
45 | } | 45 | } |
46 | 46 | ||
47 | void | 47 | void |
diff --git a/shell/ash_test/zecho.c b/shell/ash_test/zecho.c index 621d06d28..bf876f641 100644 --- a/shell/ash_test/zecho.c +++ b/shell/ash_test/zecho.c | |||
@@ -35,5 +35,5 @@ char **argv; | |||
35 | } | 35 | } |
36 | 36 | ||
37 | putchar('\n'); | 37 | putchar('\n'); |
38 | exit(0); | 38 | exit(EXIT_SUCCESS); |
39 | } | 39 | } |