diff options
| author | Adam David <adam@FreeBSD.org> | 1996-07-30 15:44:30 +0000 |
|---|---|---|
| committer | Adam David <adam@FreeBSD.org> | 1996-07-30 15:44:30 +0000 |
| commit | 6439f56e806024463b3c91e2e563abdfde40cd48 (patch) | |
| tree | f5a68e90457c4b3a3dba40c0f8696de064ce180f /usr.bin/tail | |
| parent | 58db4b5a8f67e79c6a7c56b1bd5f19f962b159a8 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tail')
| -rw-r--r-- | usr.bin/tail/forward.c | 6 | ||||
| -rw-r--r-- | usr.bin/tail/read.c | 2 |
2 files changed, 6 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; } diff --git a/usr.bin/tail/read.c b/usr.bin/tail/read.c index 94f3f0b515a6d..2b60918ae6f7b 100644 --- a/usr.bin/tail/read.c +++ b/usr.bin/tail/read.c @@ -113,6 +113,7 @@ bytes(fp, off) if (len = p - sp) WR(sp, len); } + return 0; } /* @@ -195,4 +196,5 @@ lines(fp, off) for (cnt = 0; cnt < recno; ++cnt) WR(lines[cnt].l, lines[cnt].len); } + return 0; } |
