summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-07-12 02:59:44 +0000
committerJim Meyering <jim@meyering.net>1995-07-12 02:59:44 +0000
commitba34723398d2a811f9117609bdf83e71028eae14 (patch)
tree4dcdfca5e7bbc885015476fec62e28753d01d937 /src/tail.c
parent51c3164ba325c48feac6a41d445f5554c1b328a9 (diff)
downloadcoreutils-ba34723398d2a811f9117609bdf83e71028eae14.tar.xz
(tail): Explicitly cast to long the N_UNITS argumennt in
call to tail_lines. Otherwise, NetBSD lost because N_UNITS (of type off_t, a 64-bit type on NetBSD) wasn't converted to the target type, long. Reported by Dan Hagerty (hag@gnu.ai.it.edu).
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index c4dc378c5..448c35571 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -447,7 +447,7 @@ tail (filename, fd, n_units)
off_t n_units;
{
if (count_lines)
- return tail_lines (filename, fd, n_units);
+ return tail_lines (filename, fd, (long) n_units);
else
return tail_bytes (filename, fd, n_units);
}