summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/tail.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tail/tail.c')
-rw-r--r--usr.bin/tail/tail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c
index 911dcda..9b7d9a2 100644
--- a/usr.bin/tail/tail.c
+++ b/usr.bin/tail/tail.c
@@ -71,7 +71,7 @@ main(argc, argv)
{
struct stat sb;
FILE *fp;
- long off;
+ off_t off;
enum STYLE style;
int ch, first;
char *p;
@@ -91,7 +91,7 @@ main(argc, argv)
#define ARG(units, forward, backward) { \
if (style) \
usage(); \
- off = strtol(optarg, &p, 10) * (units); \
+ off = strtoll(optarg, &p, 10) * (units); \
if (*p) \
errx(1, "illegal offset -- %s", optarg); \
switch(optarg[0]) { \
OpenPOWER on IntegriCloud