From: Jim Meyering Date: Wed, 12 Jul 1995 02:59:44 +0000 (+0000) Subject: (tail): Explicitly cast to long the N_UNITS argumennt in X-Git-Tag: textutils-1_12_1~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba34723398d2a811f9117609bdf83e71028eae14;p=thirdparty%2Fcoreutils.git (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). --- diff --git a/src/tail.c b/src/tail.c index c4dc378c5c..448c355714 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); }