aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Beppu <beppu@lbox.org>2000-06-14 00:19:14 +0000
committerJohn Beppu <beppu@lbox.org>2000-06-14 00:19:14 +0000
commitd84990eb1ffe7eac68eb9006969bf530f297b078 (patch)
tree4bc5476d84577cc5eb0b1ce6d4ea9973176a97a8
parent854e11581f39eb7d2db17c3ed6c7b1fc854a91c0 (diff)
downloadbusybox-d84990eb1ffe7eac68eb9006969bf530f297b078.tar.gz
+ removed some cruft left over from when lines could be too long.
-rw-r--r--findutils/grep.c3
-rw-r--r--grep.c3
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);
diff --git a/grep.c b/grep.c
index 1272a464b..e29606405 100644
--- a/grep.c
+++ b/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);