diff options
author | Denis Vlasenko | 2007-09-10 12:23:27 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-09-10 12:23:27 +0000 |
commit | ac074b3f87cc22c2ddadb074d630156fea720744 (patch) | |
tree | 1b530a642eeba22893a2893adc033fd0fa900fb1 | |
parent | 04ea11b033b38b8cde6e2f478845d0b756c330b4 (diff) | |
download | busybox-ac074b3f87cc22c2ddadb074d630156fea720744.zip busybox-ac074b3f87cc22c2ddadb074d630156fea720744.tar.gz |
grep: delete obsolete comment
-rw-r--r-- | findutils/grep.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index a051c2f..3a9c740 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -181,14 +181,8 @@ static int grep_file(FILE *file) while (pattern_ptr) { gl = (grep_list_data_t *)pattern_ptr->data; if (FGREP_FLAG) { - found |= strstr(line, gl->pattern) != NULL; + found |= (strstr(line, gl->pattern) != NULL); } else { - /* - * test for a postitive-assertion match (regexec returns success (0) - * and the user did not specify invert search), or a negative-assertion - * match (regexec returns failure (REG_NOMATCH) and the user specified - * invert search) - */ if (!(gl->flg_mem_alocated_compiled & COMPILED)) { gl->flg_mem_alocated_compiled |= COMPILED; xregcomp(&(gl->preg), gl->pattern, reflags); |