diff options
author | jmmv <jmmv@FreeBSD.org> | 2014-04-04 18:10:11 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2014-04-04 18:10:11 +0000 |
commit | f5ead69e01a1523a37c80c149f3879e09a0272ad (patch) | |
tree | afa6f930ad875b8e0f63682b589f0fc67ba1ba7f /tests/sys/kern/unix_seqpacket_test.c | |
parent | c6be8be4ba971ca9b510d541eb6e51a5c34250ed (diff) | |
download | FreeBSD-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/kern/unix_seqpacket_test.c')
-rw-r--r-- | tests/sys/kern/unix_seqpacket_test.c | 2 |
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; |