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 /findutils | |
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 'findutils')
-rw-r--r-- | findutils/grep.c | 4 | ||||
-rw-r--r-- | findutils/xargs.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index b319e22ce..6af1b46e1 100644 --- a/findutils/grep.c +++ b/findutils/grep.c | |||
@@ -35,7 +35,7 @@ | |||
35 | enum { | 35 | enum { |
36 | OPTBIT_l, /* list matched file names only */ | 36 | OPTBIT_l, /* list matched file names only */ |
37 | OPTBIT_n, /* print line# */ | 37 | OPTBIT_n, /* print line# */ |
38 | OPTBIT_q, /* quiet - exit(0) of first match */ | 38 | OPTBIT_q, /* quiet - exit(EXIT_SUCCESS) of first match */ |
39 | OPTBIT_v, /* invert the match, to select non-matching lines */ | 39 | OPTBIT_v, /* invert the match, to select non-matching lines */ |
40 | OPTBIT_s, /* suppress errors about file open errors */ | 40 | OPTBIT_s, /* suppress errors about file open errors */ |
41 | OPTBIT_c, /* count matches per file (suppresses normal output) */ | 41 | OPTBIT_c, /* count matches per file (suppresses normal output) */ |
@@ -224,7 +224,7 @@ static int grep_file(FILE *file) | |||
224 | * "exit immediately with zero status | 224 | * "exit immediately with zero status |
225 | * if any match is found, | 225 | * if any match is found, |
226 | * even if errors were detected" */ | 226 | * even if errors were detected" */ |
227 | exit(0); | 227 | exit(EXIT_SUCCESS); |
228 | } | 228 | } |
229 | /* if we're just printing filenames, we stop after the first match */ | 229 | /* if we're just printing filenames, we stop after the first match */ |
230 | if (PRINT_FILES_WITH_MATCHES) { | 230 | if (PRINT_FILES_WITH_MATCHES) { |
diff --git a/findutils/xargs.c b/findutils/xargs.c index d1cf192b1..352f7e64c 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c | |||
@@ -517,7 +517,7 @@ void bb_show_usage(void) | |||
517 | { | 517 | { |
518 | fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n", | 518 | fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n", |
519 | applet_name); | 519 | applet_name); |
520 | exit(1); | 520 | exit(EXIT_FAILURE); |
521 | } | 521 | } |
522 | 522 | ||
523 | int main(int argc, char **argv) | 523 | int main(int argc, char **argv) |