Build look(1) with WARNS=6.

This commit is contained in:
ed 2011-10-14 07:24:48 +00:00
parent a3dde8469a
commit 9a877f97e7
2 changed files with 1 additions and 3 deletions

View File

@ -3,6 +3,4 @@
PROG= look
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -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);