X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;fp=src%2Fyaz-my-client.cpp;h=33186acf765c2ac65c32f44d14fe2977a19d9867;hb=b8e64d193b1b4f3197cb0c1db2f8d097e67cd50a;hp=90504e2bee19e675feba49878c51b3d182e3b729;hpb=42f5f787566c86490724a6f4166ff4196f057ad8;p=yazpp-moved-to-github.git diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 90504e2..33186ac 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -153,7 +153,7 @@ void MyClient::recv_diagrecs(Z_DiagRec **pp, int num) } else r = p->u.defaultFormat; - printf(" [%d] %s", *r->condition, diagbib1_str(*r->condition)); + printf(" [" ODR_INT_PRINTF "] %s", *r->condition, diagbib1_str(*r->condition)); switch (r->which) { case Z_DefaultDiagFormat_v2Addinfo: @@ -277,7 +277,7 @@ void MyClient::recv_searchResponse(Z_SearchResponse *searchResponse) else { printf ("Ok\n"); - printf ("Hits: %d\n", *searchResponse->resultCount); + printf ("Hits: " ODR_INT_PRINTF "\n", *searchResponse->resultCount); } recv_records (searchResponse->records); }