From dbce572a22c976629901309fe6c274016a4b06ce Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 13 Jun 2006 20:04:38 +0000 Subject: [PATCH] Cast size_t to long for printf --- test/api/testclient.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/api/testclient.c b/test/api/testclient.c index efe98fc..4ac8e08 100644 --- a/test/api/testclient.c +++ b/test/api/testclient.c @@ -1,5 +1,5 @@ /* - * $Id: testclient.c,v 1.3 2006-05-10 08:13:35 adam Exp $ + * $Id: testclient.c,v 1.4 2006-06-13 20:04:38 adam Exp $ * * Z39.50 client specifically for Zebra testing. */ @@ -98,11 +98,11 @@ int main(int argc, char **argv) } else { - printf ("Result count: %d\n", ZOOM_resultset_size(r)); + printf ("Result count: %ld\n", (long) ZOOM_resultset_size(r)); if (check_count != -1 && check_count != ZOOM_resultset_size(r)) { - printf("Wrong number of hits, expected %d, got %d\n", - check_count, ZOOM_resultset_size(r) ); + printf("Wrong number of hits, expected %d, got %ld\n", + check_count, (long) ZOOM_resultset_size(r) ); exit(3); } } -- 1.7.10.4