aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-10 12:23:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-10 12:23:27 +0000
commitac074b3f87cc22c2ddadb074d630156fea720744 (patch)
tree1b530a642eeba22893a2893adc033fd0fa900fb1
parent04ea11b033b38b8cde6e2f478845d0b756c330b4 (diff)
downloadbusybox-w32-ac074b3f87cc22c2ddadb074d630156fea720744.tar.gz
busybox-w32-ac074b3f87cc22c2ddadb074d630156fea720744.tar.bz2
busybox-w32-ac074b3f87cc22c2ddadb074d630156fea720744.zip
grep: delete obsolete comment
-rw-r--r--findutils/grep.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index a051c2f18..3a9c74073 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -181,14 +181,8 @@ static int grep_file(FILE *file)
181 while (pattern_ptr) { 181 while (pattern_ptr) {
182 gl = (grep_list_data_t *)pattern_ptr->data; 182 gl = (grep_list_data_t *)pattern_ptr->data;
183 if (FGREP_FLAG) { 183 if (FGREP_FLAG) {
184 found |= strstr(line, gl->pattern) != NULL; 184 found |= (strstr(line, gl->pattern) != NULL);
185 } else { 185 } else {
186 /*
187 * test for a postitive-assertion match (regexec returns success (0)
188 * and the user did not specify invert search), or a negative-assertion
189 * match (regexec returns failure (REG_NOMATCH) and the user specified
190 * invert search)
191 */
192 if (!(gl->flg_mem_alocated_compiled & COMPILED)) { 186 if (!(gl->flg_mem_alocated_compiled & COMPILED)) {
193 gl->flg_mem_alocated_compiled |= COMPILED; 187 gl->flg_mem_alocated_compiled |= COMPILED;
194 xregcomp(&(gl->preg), gl->pattern, reflags); 188 xregcomp(&(gl->preg), gl->pattern, reflags);