summaryrefslogtreecommitdiffstats
path: root/contrib/less/output.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2016-01-05 05:25:16 +0000
committerdelphij <delphij@FreeBSD.org>2016-01-05 05:25:16 +0000
commit03d374e3a6bf9b6f27de2a5eb994a1850de1e4fb (patch)
tree587451b5b5628b51a1932678fc08292d250617f9 /contrib/less/output.c
parentea7f4bcbda6247eed1adbc86025969a1c5cfa442 (diff)
parent479faf106b9c06110ca6358bfbd0ef45b838cbc8 (diff)
downloadFreeBSD-src-03d374e3a6bf9b6f27de2a5eb994a1850de1e4fb.zip
FreeBSD-src-03d374e3a6bf9b6f27de2a5eb994a1850de1e4fb.tar.gz
MFV r293125: less v481.
MFC after: 1 month Relnotes: yes
Diffstat (limited to 'contrib/less/output.c')
-rw-r--r--contrib/less/output.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/less/output.c b/contrib/less/output.c
index e1f2cff..d6cfc38 100644
--- a/contrib/less/output.c
+++ b/contrib/less/output.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2012 Mark Nudelman
+ * Copyright (C) 1984-2015 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -98,7 +98,7 @@ flush()
register int n;
register int fd;
- n = ob - obuf;
+ n = (int) (ob - obuf);
if (n == 0)
return;
@@ -197,7 +197,7 @@ flush()
* Leave it unprocessed
* in the buffer.
*/
- int slop = q - anchor;
+ int slop = (int) (q - anchor);
/* {{ strcpy args overlap! }} */
strcpy(obuf, anchor);
ob = &obuf[slop];
@@ -423,7 +423,7 @@ iprint_int(num)
inttoa(num, buf);
putstr(buf);
- return (strlen(buf));
+ return ((int) strlen(buf));
}
/*
@@ -437,7 +437,7 @@ iprint_linenum(num)
linenumtoa(num, buf);
putstr(buf);
- return (strlen(buf));
+ return ((int) strlen(buf));
}
/*
OpenPOWER on IntegriCloud