From ba34723398d2a811f9117609bdf83e71028eae14 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 12 Jul 1995 02:59:44 +0000 Subject: (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). --- src/tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2