summaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenis Vlasenko2007-09-10 12:23:27 +0000
committerDenis Vlasenko2007-09-10 12:23:27 +0000
commitac074b3f87cc22c2ddadb074d630156fea720744 (patch)
tree1b530a642eeba22893a2893adc033fd0fa900fb1 /findutils
parent04ea11b033b38b8cde6e2f478845d0b756c330b4 (diff)
downloadbusybox-ac074b3f87cc22c2ddadb074d630156fea720744.zip
busybox-ac074b3f87cc22c2ddadb074d630156fea720744.tar.gz
grep: delete obsolete comment
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c8
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);