diff options
author | John Beppu <beppu@lbox.org> | 2000-06-14 00:19:14 +0000 |
---|---|---|
committer | John Beppu <beppu@lbox.org> | 2000-06-14 00:19:14 +0000 |
commit | d84990eb1ffe7eac68eb9006969bf530f297b078 (patch) | |
tree | 4bc5476d84577cc5eb0b1ce6d4ea9973176a97a8 | |
parent | 854e11581f39eb7d2db17c3ed6c7b1fc854a91c0 (diff) | |
download | busybox-d84990eb1ffe7eac68eb9006969bf530f297b078.tar.gz |
+ removed some cruft left over from when lines could be too long.
-rw-r--r-- | findutils/grep.c | 3 | ||||
-rw-r--r-- | grep.c | 3 |
2 files changed, 0 insertions, 6 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); @@ -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); |