Date: Thu, 16 Apr 2015 09:41:38 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r281598 - user/ngie/more-tests/tests/sys/socket Message-ID: <201504160941.t3G9fcgl050713@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Thu Apr 16 09:41:37 2015 New Revision: 281598 URL: https://svnweb.freebsd.org/changeset/base/281598 Log: Fix a warning related to type sizes found by testing on a 32-bit OS ;) (powerpc) Modified: user/ngie/more-tests/tests/sys/socket/so_setfib_test.c Modified: user/ngie/more-tests/tests/sys/socket/so_setfib_test.c ============================================================================== --- user/ngie/more-tests/tests/sys/socket/so_setfib_test.c Thu Apr 16 08:50:41 2015 (r281597) +++ user/ngie/more-tests/tests/sys/socket/so_setfib_test.c Thu Apr 16 09:41:37 2015 (r281598) @@ -183,8 +183,7 @@ main(int argc __unused, char *argv[] __u if (sysctlbyname("net.fibs", &rt_numfibs, &s, NULL, 0) == -1) err(1, "sysctlbyname(net.fibs, ..)"); - printf("1..%lu\n", - (nitems(t_dom) - 1) * nitems(t_type) * (2 + rt_numfibs + 2 + 3)); + printf("1..%zu\n", (nitems(t_dom) - 1) * nitems(t_type) * (2 + rt_numfibs + 2 + 3)); /* Adjust from number to index. */ rt_numfibs -= 1;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504160941.t3G9fcgl050713>