Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 18:10:11 +0000 (UTC)
From:      Julio Merino <jmmv@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264133 - head/tests/sys/kern
Message-ID:  <201404041810.s34IABr2019198@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmmv
Date: Fri Apr  4 18:10:11 2014
New Revision: 264133
URL: http://svnweb.freebsd.org/changeset/base/264133

Log:
  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.

Modified:
  head/tests/sys/kern/unix_seqpacket_test.c

Modified: head/tests/sys/kern/unix_seqpacket_test.c
==============================================================================
--- head/tests/sys/kern/unix_seqpacket_test.c	Fri Apr  4 18:07:21 2014	(r264132)
+++ head/tests/sys/kern/unix_seqpacket_test.c	Fri Apr  4 18:10:11 2014	(r264133)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404041810.s34IABr2019198>