projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
buildconf removes autom4te.cache
[yazpp-moved-to-github.git]
/
src
/
yaz-my-client.cpp
diff --git
a/src/yaz-my-client.cpp
b/src/yaz-my-client.cpp
index
64ddaf4
..
69b4c9b
100644
(file)
--- a/
src/yaz-my-client.cpp
+++ b/
src/yaz-my-client.cpp
@@
-1,8
+1,11
@@
/* This file is part of the yazpp toolkit.
/* This file is part of the yazpp toolkit.
- * Copyright (C) 1998-2008 Index Data and Mike Taylor
+ * Copyright (C) 1998-2011 Index Data and Mike Taylor
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <yaz/log.h>
#include <yaz/options.h>
#include <stdlib.h>
#include <yaz/log.h>
#include <yaz/options.h>
@@
-153,7
+156,7
@@
void MyClient::recv_diagrecs(Z_DiagRec **pp, int num)
}
else
r = p->u.defaultFormat;
}
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:
switch (r->which)
{
case Z_DefaultDiagFormat_v2Addinfo:
@@
-277,7
+280,7
@@
void MyClient::recv_searchResponse(Z_SearchResponse *searchResponse)
else
{
printf ("Ok\n");
else
{
printf ("Ok\n");
- printf ("Hits: %d\n", *searchResponse->resultCount);
+ printf ("Hits: " ODR_INT_PRINTF "\n", *searchResponse->resultCount);
}
recv_records (searchResponse->records);
}
}
recv_records (searchResponse->records);
}
@@
-552,6
+555,7
@@
int main(int argc, char **argv)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab