svn commit: trunk/busybox/findutils

vda at busybox.net vda at busybox.net
Mon Sep 10 12:23:27 UTC 2007


Author: vda
Date: 2007-09-10 05:23:27 -0700 (Mon, 10 Sep 2007)
New Revision: 19812

Log:
grep: delete obsolete comment



Modified:
   trunk/busybox/findutils/grep.c


Changeset:
Modified: trunk/busybox/findutils/grep.c
===================================================================
--- trunk/busybox/findutils/grep.c	2007-09-10 12:18:32 UTC (rev 19811)
+++ trunk/busybox/findutils/grep.c	2007-09-10 12:23:27 UTC (rev 19812)
@@ -181,14 +181,8 @@
 		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);




More information about the busybox-cvs mailing list