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); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"