svn commit: r281598 - user/ngie/more-tests/tests/sys/socket
Garrett Cooper
ngie at FreeBSD.org
Thu Apr 16 09:41:38 UTC 2015
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;
More information about the svn-src-user
mailing list