diff options
| author | Alexander Langer <alex@FreeBSD.org> | 1997-01-16 21:58:40 +0000 |
|---|---|---|
| committer | Alexander Langer <alex@FreeBSD.org> | 1997-01-16 21:58:40 +0000 |
| commit | 8abdc2eb40c03b97153f2a01bdb53927f3a336c1 (patch) | |
| tree | d61898dd79824c10ca33127214d8569c804559c2 /usr.bin/tail | |
| parent | 839cc09e5384e6f8c0ebb9203052015b532cfce7 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tail')
| -rw-r--r-- | usr.bin/tail/forward.c | 2 | ||||
| -rw-r--r-- | usr.bin/tail/reverse.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index 4b22eefddf089..b9457afbb0cff 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -210,7 +210,7 @@ rlines(fp, off, sbp) } if ((start = mmap(NULL, (size_t)size, - PROT_READ, 0, fileno(fp), (off_t)0)) == (caddr_t)-1) { + PROT_READ, MAP_SHARED, fileno(fp), (off_t)0)) == MAP_FAILED) { ierr(); return; } diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c index 2653add72cd3d..0a07f4f1bdcb0 100644 --- a/usr.bin/tail/reverse.c +++ b/usr.bin/tail/reverse.c @@ -125,7 +125,7 @@ r_reg(fp, style, off, sbp) } if ((start = mmap(NULL, (size_t)size, - PROT_READ, 0, fileno(fp), (off_t)0)) == (caddr_t)-1) { + PROT_READ, MAP_SHARED, fileno(fp), (off_t)0)) == MAP_FAILED) { ierr(); return; } |
