summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-09-04 08:42:12 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-09-04 08:42:12 +0000
commit262315f53d65f0949d585de376462a95eef1d6fd (patch)
tree2910c6790865114b61b24a311e8d6ba9beb4fae7 /tests
parent69254ed93114cd5cee8782ba1c836b5e20cb29b9 (diff)
add casts from size_t to int for printf
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1534 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests')
-rw-r--r--tests/test_tio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_tio.c b/tests/test_tio.c
index cad5ea5..b71fb7b 100644
--- a/tests/test_tio.c
+++ b/tests/test_tio.c
@@ -174,8 +174,8 @@ static int test_blocks(size_t wbs, size_t wbl, size_t rbs, size_t rbl)
/* set up the socket pair */
assertok(socketpair(AF_UNIX,SOCK_STREAM,0,sp)==0);
/* log */
- printf("test_tio: writing %d blocks of %d bytes (%d total)\n",wbl,wbs,wbl*wbs);
- printf("test_tio: reading %d blocks of %d bytes (%d total)\n",rbl,rbs,rbl*rbs);
+ printf("test_tio: writing %d blocks of %d bytes (%d total)\n",(int)wbl,(int)wbs,(int)(wbl*wbs));
+ printf("test_tio: reading %d blocks of %d bytes (%d total)\n",(int)rbl,(int)rbs,(int)(rbl*rbs));
/* start the writer thread */
wargs.fd=sp[0];
wargs.blocksize=wbs;