Date: Fri, 14 Oct 2011 07:24:48 +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: r226359 - head/usr.bin/look Message-ID: <201110140724.p9E7OmMB052118@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Oct 14 07:24:48 2011 New Revision: 226359 URL: http://svn.freebsd.org/changeset/base/226359 Log: Build look(1) with WARNS=6. Modified: head/usr.bin/look/Makefile head/usr.bin/look/look.c Modified: head/usr.bin/look/Makefile ============================================================================== --- head/usr.bin/look/Makefile Fri Oct 14 07:24:23 2011 (r226358) +++ head/usr.bin/look/Makefile Fri Oct 14 07:24:48 2011 (r226359) @@ -3,6 +3,4 @@ PROG= look -WARNS?= 2 - .include <bsd.prog.mk> Modified: head/usr.bin/look/look.c ============================================================================== --- head/usr.bin/look/look.c Fri Oct 14 07:24:23 2011 (r226358) +++ head/usr.bin/look/look.c Fri Oct 14 07:24:48 2011 (r226359) @@ -134,7 +134,7 @@ main(int argc, char *argv[]) do { if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb)) err(2, "%s", file); - if (sb.st_size > SIZE_T_MAX) + if (sb.st_size > (off_t)SIZE_T_MAX) errx(2, "%s: %s", file, strerror(EFBIG)); if (sb.st_size == 0) { close(fd);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110140724.p9E7OmMB052118>