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 --- findutils/grep.c | 4 ++-- findutils/xargs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'findutils') 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 @@ enum { OPTBIT_l, /* list matched file names only */ OPTBIT_n, /* print line# */ - OPTBIT_q, /* quiet - exit(0) of first match */ + OPTBIT_q, /* quiet - exit(EXIT_SUCCESS) of first match */ OPTBIT_v, /* invert the match, to select non-matching lines */ OPTBIT_s, /* suppress errors about file open errors */ OPTBIT_c, /* count matches per file (suppresses normal output) */ @@ -224,7 +224,7 @@ static int grep_file(FILE *file) * "exit immediately with zero status * if any match is found, * even if errors were detected" */ - exit(0); + exit(EXIT_SUCCESS); } /* if we're just printing filenames, we stop after the first match */ 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) { fprintf(stderr, "Usage: %s [-p] [-r] [-t] -[x] [-n max_arg] [-s max_chars]\n", applet_name); - exit(1); + exit(EXIT_FAILURE); } int main(int argc, char **argv) -- cgit v1.2.3