summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/lprint.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-14 07:24:23 +0000
committered <ed@FreeBSD.org>2011-10-14 07:24:23 +0000
commita3dde8469a99bb2fbc25228397f48cf974b61418 (patch)
treea0f26126753e9574a8f360b29cda29db1a0bf392 /usr.bin/finger/lprint.c
parent9cf34024d8cd48166c192fc4a6ca1bd276314792 (diff)
downloadFreeBSD-src-a3dde8469a99bb2fbc25228397f48cf974b61418.zip
FreeBSD-src-a3dde8469a99bb2fbc25228397f48cf974b61418.tar.gz
Build finger(1) with WARNS=6.
Diffstat (limited to 'usr.bin/finger/lprint.c')
-rw-r--r--usr.bin/finger/lprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/finger/lprint.c b/usr.bin/finger/lprint.c
index 8b7b19f..db902df 100644
--- a/usr.bin/finger/lprint.c
+++ b/usr.bin/finger/lprint.c
@@ -306,7 +306,7 @@ show_text(const char *directory, const char *file_name, const char *header)
return(0);
/* If short enough, and no newlines, show it on a single line.*/
- if (sb.st_size <= LINE_LEN - strlen(header) - 5) {
+ if (sb.st_size <= (off_t)(LINE_LEN - strlen(header) - 5)) {
nr = read(fd, tbuf, sizeof(tbuf));
if (nr <= 0) {
(void)close(fd);
OpenPOWER on IntegriCloud