diff options
author | adam <adam@FreeBSD.org> | 1996-07-30 15:44:30 +0000 |
---|---|---|
committer | adam <adam@FreeBSD.org> | 1996-07-30 15:44:30 +0000 |
commit | e46c6e5f4a0f71902e1e55097a74047549bd5de4 (patch) | |
tree | f5a68e90457c4b3a3dba40c0f8696de064ce180f /usr.bin/tail | |
parent | 1bf6778b4488ac355ba9b1bddf3ae8ea35785203 (diff) | |
download | FreeBSD-src-e46c6e5f4a0f71902e1e55097a74047549bd5de4.zip FreeBSD-src-e46c6e5f4a0f71902e1e55097a74047549bd5de4.tar.gz |
one file somehow slipped by me in the previous commit
tidy up
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 8e32cc4..830d6aa 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 94f3f0b..2b60918 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; } |