summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-04-16 09:41:37 +0000
committerngie <ngie@FreeBSD.org>2015-04-16 09:41:37 +0000
commit9a97d02d52064150d19e7a67cc2265ae859ca7d4 (patch)
tree61820824ee514cb213b1056136cdc527be12750d /tests
parent7a883bb7cb3b9e598107c26b7dbe9bc2bcb33ad0 (diff)
downloadFreeBSD-src-9a97d02d52064150d19e7a67cc2265ae859ca7d4.zip
FreeBSD-src-9a97d02d52064150d19e7a67cc2265ae859ca7d4.tar.gz
Fix a warning related to type sizes found by testing on a 32-bit OS ;) (powerpc)
Diffstat (limited to 'tests')
-rw-r--r--tests/sys/socket/so_setfib_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/sys/socket/so_setfib_test.c b/tests/sys/socket/so_setfib_test.c
index 50cb020..627a00d 100644
--- a/tests/sys/socket/so_setfib_test.c
+++ b/tests/sys/socket/so_setfib_test.c
@@ -183,8 +183,7 @@ main(int argc __unused, char *argv[] __unused)
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;
OpenPOWER on IntegriCloud