Date: Mon, 5 Oct 2015 00:51:41 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r288679 - user/ngie/more-tests/tests/sys/vm Message-ID: <201510050051.t950pfeI015392@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Oct 5 00:51:41 2015 New Revision: 288679 URL: https://svnweb.freebsd.org/changeset/base/288679 Log: Fix compilation with -Werror + -Wsigned enabled Modified: user/ngie/more-tests/tests/sys/vm/mmap_test.c Modified: user/ngie/more-tests/tests/sys/vm/mmap_test.c ============================================================================== --- user/ngie/more-tests/tests/sys/vm/mmap_test.c Mon Oct 5 00:33:57 2015 (r288678) +++ user/ngie/more-tests/tests/sys/vm/mmap_test.c Mon Oct 5 00:51:41 2015 (r288679) @@ -177,8 +177,7 @@ ATF_TC_WITHOUT_HEAD(mmap__dev_zero_priva ATF_TC_BODY(mmap__dev_zero_private, tc) { char *p1, *p2, *p3; - size_t i; - int fd; + int fd, i; ATF_REQUIRE((fd = open("/dev/zero", O_RDONLY)) >= 0); @@ -191,7 +190,7 @@ ATF_TC_BODY(mmap__dev_zero_private, tc) ATF_REQUIRE(p2 != MAP_FAILED); for (i = 0; i < getpagesize(); i++) - ATF_REQUIRE_EQ_MSG(0, p1[i], "byte at p1[%zu] is %x", i, p1[i]); + ATF_REQUIRE_EQ_MSG(0, p1[i], "byte at p1[%d] is %x", i, p1[i]); ATF_REQUIRE(memcmp(p1, p2, getpagesize()) == 0); @@ -214,8 +213,7 @@ ATF_TC_WITHOUT_HEAD(mmap__dev_zero_share ATF_TC_BODY(mmap__dev_zero_shared, tc) { char *p1, *p2, *p3; - size_t i; - int fd; + int fd, i; ATF_REQUIRE((fd = open("/dev/zero", O_RDWR)) >= 0); @@ -228,7 +226,7 @@ ATF_TC_BODY(mmap__dev_zero_shared, tc) ATF_REQUIRE(p2 != MAP_FAILED); for (i = 0; i < getpagesize(); i++) - ATF_REQUIRE_EQ_MSG(0, p1[i], "byte at p1[%zu] is %x", i, p1[i]); + ATF_REQUIRE_EQ_MSG(0, p1[i], "byte at p1[%d] is %x", i, p1[i]); ATF_REQUIRE(memcmp(p1, p2, getpagesize()) == 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510050051.t950pfeI015392>