summaryrefslogtreecommitdiffstats
path: root/tests/sys
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2014-04-04 18:10:11 +0000
committerjmmv <jmmv@FreeBSD.org>2014-04-04 18:10:11 +0000
commitf5ead69e01a1523a37c80c149f3879e09a0272ad (patch)
treeafa6f930ad875b8e0f63682b589f0fc67ba1ba7f /tests/sys
parentc6be8be4ba971ca9b510d541eb6e51a5c34250ed (diff)
downloadFreeBSD-src-f5ead69e01a1523a37c80c149f3879e09a0272ad.zip
FreeBSD-src-f5ead69e01a1523a37c80c149f3879e09a0272ad.tar.gz
Fix variable type to avoid printf formatter warning.
This fixes the build under powerpc64 where gcc complains about a mismatch between a %zd printf formatter and an int variable passed to it.
Diffstat (limited to 'tests/sys')
-rw-r--r--tests/sys/kern/unix_seqpacket_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/kern/unix_seqpacket_test.c b/tests/sys/kern/unix_seqpacket_test.c
index 0ccd639..58d6c19 100644
--- a/tests/sys/kern/unix_seqpacket_test.c
+++ b/tests/sys/kern/unix_seqpacket_test.c
@@ -872,7 +872,7 @@ ATF_TC_BODY(rcvbuf_oversized, tc)
{
int i;
int sv[2];
- const int pktsize = 1024;
+ const ssize_t pktsize = 1024;
const size_t sndbufsize = 8192;
const size_t rcvbufsize = 131072;
const size_t geometric_mean_bufsize = 32768;
OpenPOWER on IntegriCloud