aboutsummaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 8b6e29874..b115d9a1d 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -39,7 +39,7 @@
39//config:config FEATURE_GREP_CONTEXT 39//config:config FEATURE_GREP_CONTEXT
40//config: bool "Enable before and after context flags (-A, -B and -C)" 40//config: bool "Enable before and after context flags (-A, -B and -C)"
41//config: default y 41//config: default y
42//config: depends on GREP || EGREP 42//config: depends on GREP || EGREP || FGREP
43//config: help 43//config: help
44//config: Print the specified number of leading (-B) and/or trailing (-A) 44//config: Print the specified number of leading (-B) and/or trailing (-A)
45//config: context surrounding our matching lines. 45//config: context surrounding our matching lines.
@@ -523,7 +523,7 @@ static int grep_file(FILE *file)
523 if (option_mask32 & OPT_o) { 523 if (option_mask32 & OPT_o) {
524 if (FGREP_FLAG) { 524 if (FGREP_FLAG) {
525 /* -Fo just prints the pattern 525 /* -Fo just prints the pattern
526 * (unless -v: -Fov doesnt print anything at all) */ 526 * (unless -v: -Fov doesn't print anything at all) */
527 if (found) 527 if (found)
528 print_line(gl->pattern, strlen(gl->pattern), linenum, ':'); 528 print_line(gl->pattern, strlen(gl->pattern), linenum, ':');
529 } else while (1) { 529 } else while (1) {
@@ -831,7 +831,7 @@ int grep_main(int argc UNUSED_PARAM, char **argv)
831 grep_done: ; 831 grep_done: ;
832 } while (*argv && *++argv); 832 } while (*argv && *++argv);
833 833
834 /* destroy all the elments in the pattern list */ 834 /* destroy all the elements in the pattern list */
835 if (ENABLE_FEATURE_CLEAN_UP) { 835 if (ENABLE_FEATURE_CLEAN_UP) {
836 while (pattern_head) { 836 while (pattern_head) {
837 llist_t *pattern_head_ptr = pattern_head; 837 llist_t *pattern_head_ptr = pattern_head;