X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;h=7c4e479b361f0013857b5a0fd6d5e7ba0926318a;hp=90504e2bee19e675feba49878c51b3d182e3b729;hb=8353663886b90d762d43790780be6cb58fb93c8a;hpb=6b22d0543d41bec8626f3ae7ac866bcab7de44bd diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 90504e2..7c4e479 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2009 Index Data and Mike Taylor + * Copyright (C) 1998-2011 Index Data and Mike Taylor * See the file LICENSE for details. */ @@ -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); }