summaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorJohn Beppu2000-06-14 00:19:14 +0000
committerJohn Beppu2000-06-14 00:19:14 +0000
commitd84990eb1ffe7eac68eb9006969bf530f297b078 (patch)
tree4bc5476d84577cc5eb0b1ce6d4ea9973176a97a8 /grep.c
parent854e11581f39eb7d2db17c3ed6c7b1fc854a91c0 (diff)
downloadbusybox-d84990eb1ffe7eac68eb9006969bf530f297b078.zip
busybox-d84990eb1ffe7eac68eb9006969bf530f297b078.tar.gz
+ removed some cruft left over from when lines could be too long.
Diffstat (limited to 'grep.c')
-rw-r--r--grep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/grep.c b/grep.c
index 1272a46..e296064 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);