aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tail/forward.c
diff options
context:
space:
mode:
authorAdam David <adam@FreeBSD.org>1996-07-30 15:44:30 +0000
committerAdam David <adam@FreeBSD.org>1996-07-30 15:44:30 +0000
commit6439f56e806024463b3c91e2e563abdfde40cd48 (patch)
treef5a68e90457c4b3a3dba40c0f8696de064ce180f /usr.bin/tail/forward.c
parent58db4b5a8f67e79c6a7c56b1bd5f19f962b159a8 (diff)
Notes
Diffstat (limited to 'usr.bin/tail/forward.c')
-rw-r--r--usr.bin/tail/forward.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index 8e32cc45ab718..830d6aa20a79d 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -136,7 +136,8 @@ forward(fp, style, off, sbp)
return;
}
} else
- bytes(fp, off);
+ if (bytes(fp, off))
+ return;
break;
case RLINES:
if (S_ISREG(sbp->st_mode))
@@ -154,7 +155,8 @@ forward(fp, style, off, sbp)
return;
}
} else
- lines(fp, off);
+ if (lines(fp, off))
+ return;
break;
}