Date: Fri, 14 Oct 2011 07:24:23 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226358 - head/usr.bin/finger Message-ID: <201110140724.p9E7ONXO052069@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Oct 14 07:24:23 2011 New Revision: 226358 URL: http://svn.freebsd.org/changeset/base/226358 Log: Build finger(1) with WARNS=6. Modified: head/usr.bin/finger/Makefile head/usr.bin/finger/lprint.c Modified: head/usr.bin/finger/Makefile ============================================================================== --- head/usr.bin/finger/Makefile Fri Oct 14 06:38:45 2011 (r226357) +++ head/usr.bin/finger/Makefile Fri Oct 14 07:24:23 2011 (r226358) @@ -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> Modified: head/usr.bin/finger/lprint.c ============================================================================== --- head/usr.bin/finger/lprint.c Fri Oct 14 06:38:45 2011 (r226357) +++ head/usr.bin/finger/lprint.c Fri Oct 14 07:24:23 2011 (r226358) @@ -306,7 +306,7 @@ show_text(const char *directory, const c 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110140724.p9E7ONXO052069>