diff options
author | ed <ed@FreeBSD.org> | 2011-10-14 07:24:23 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2011-10-14 07:24:23 +0000 |
commit | a3dde8469a99bb2fbc25228397f48cf974b61418 (patch) | |
tree | a0f26126753e9574a8f360b29cda29db1a0bf392 /usr.bin/finger | |
parent | 9cf34024d8cd48166c192fc4a6ca1bd276314792 (diff) | |
download | FreeBSD-src-a3dde8469a99bb2fbc25228397f48cf974b61418.zip FreeBSD-src-a3dde8469a99bb2fbc25228397f48cf974b61418.tar.gz |
Build finger(1) with WARNS=6.
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/Makefile | 2 | ||||
-rw-r--r-- | usr.bin/finger/lprint.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/finger/Makefile b/usr.bin/finger/Makefile index 30e04df..983392b 100644 --- a/usr.bin/finger/Makefile +++ b/usr.bin/finger/Makefile @@ -5,6 +5,4 @@ PROG= finger SRCS= finger.c lprint.c net.c sprint.c util.c MAN= finger.1 finger.conf.5 -WARNS?= 2 - .include <bsd.prog.mk> 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); |