X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-my-client.cpp;h=0121dc6aef53b93f7e45e2841beafde85e722989;hb=b6131942246f587188208dd9df6f5332839101d2;hp=32e9bbedcb394521e6dc16016f04a93e2b735a40;hpb=9fef1c618f2f936041b3b58d61e406182033ab30;p=yazpp-moved-to-github.git diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 32e9bbe..0121dc6 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-2010 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); } @@ -552,6 +552,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab