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/msh.c | |
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/msh.c')
-rw-r--r-- | shell/msh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/msh.c b/shell/msh.c index aa6fb1d26..48fa56eb7 100644 --- a/shell/msh.c +++ b/shell/msh.c | |||
@@ -2855,7 +2855,7 @@ static int forkexec(struct op *t, int *pin, int *pout, int no_fork, char **wp) | |||
2855 | if (t->op_type == TPAREN) | 2855 | if (t->op_type == TPAREN) |
2856 | _exit(execute(t->left, NOPIPE, NOPIPE, /* no_fork: */ 1)); | 2856 | _exit(execute(t->left, NOPIPE, NOPIPE, /* no_fork: */ 1)); |
2857 | if (wp[0] == NULL) | 2857 | if (wp[0] == NULL) |
2858 | _exit(0); | 2858 | _exit(EXIT_SUCCESS); |
2859 | 2859 | ||
2860 | cp = rexecve(wp[0], wp, makenv(0, NULL)); | 2860 | cp = rexecve(wp[0], wp, makenv(0, NULL)); |
2861 | prs(wp[0]); | 2861 | prs(wp[0]); |
@@ -4207,7 +4207,7 @@ static int grave(int quoted) | |||
4207 | prs(argument_list[0]); | 4207 | prs(argument_list[0]); |
4208 | prs(": "); | 4208 | prs(": "); |
4209 | err(cp); | 4209 | err(cp); |
4210 | _exit(1); | 4210 | _exit(EXIT_FAILURE); |
4211 | } | 4211 | } |
4212 | 4212 | ||
4213 | 4213 | ||
@@ -4733,7 +4733,7 @@ static int filechar(struct ioarg *ap) | |||
4733 | while (size == 0 || position >= size) { | 4733 | while (size == 0 || position >= size) { |
4734 | size = read_line_input(current_prompt, filechar_cmdbuf, BUFSIZ, line_input_state); | 4734 | size = read_line_input(current_prompt, filechar_cmdbuf, BUFSIZ, line_input_state); |
4735 | if (size < 0) /* Error/EOF */ | 4735 | if (size < 0) /* Error/EOF */ |
4736 | exit(0); | 4736 | exit(EXIT_SUCCESS); |
4737 | position = 0; | 4737 | position = 0; |
4738 | /* if Ctrl-C, size == 0 and loop will repeat */ | 4738 | /* if Ctrl-C, size == 0 and loop will repeat */ |
4739 | } | 4739 | } |
@@ -5212,7 +5212,7 @@ int msh_main(int argc, char **argv) | |||
5212 | 5212 | ||
5213 | name = *++argv; | 5213 | name = *++argv; |
5214 | if (newfile(name)) | 5214 | if (newfile(name)) |
5215 | exit(1); /* Exit on error */ | 5215 | exit(EXIT_FAILURE); /* Exit on error */ |
5216 | } | 5216 | } |
5217 | } | 5217 | } |
5218 | 5218 | ||