diff options
author | John Beppu <beppu@lbox.org> | 2000-06-14 04:19:14 +0400 |
---|---|---|
committer | John Beppu <beppu@lbox.org> | 2000-06-14 04:19:14 +0400 |
commit | d84990eb1ffe7eac68eb9006969bf530f297b078 (patch) | |
tree | 4bc5476d84577cc5eb0b1ce6d4ea9973176a97a8 /findutils | |
parent | 854e11581f39eb7d2db17c3ed6c7b1fc854a91c0 (diff) |
+ removed some cruft left over from when lines could be too long.
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/grep.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/findutils/grep.c b/findutils/grep.c index 1272a464b..e29606405 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -66,15 +66,12 @@ static int match = FALSE, beQuiet = FALSE; static void do_grep(FILE * fp, char *needle, char *fileName, int tellName, int ignoreCase, int tellLine, int invertSearch) { - char *cp; long line = 0; char *haystack; int truth = !invertSearch; while ((haystack = cstring_lineFromFile(fp))) { line++; - cp = &haystack[strlen(haystack) - 1]; - if (find_match(haystack, needle, ignoreCase) == truth) { if (tellName == TRUE) printf("%s:", fileName); |