From: Adam Dickmeiss Date: Tue, 13 Jun 2006 20:04:38 +0000 (+0000) Subject: Cast size_t to long for printf X-Git-Tag: before.bug.529~27 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=dbce572a22c976629901309fe6c274016a4b06ce;p=idzebra-moved-to-github.git Cast size_t to long for printf --- 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); } }