aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c4
1 files changed, 2 insertions, 2 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 @@
35enum { 35enum {
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) {