projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treat field as having subfields even if first char is blank/other
[yaz-moved-to-github.git]
/
zoom
/
zoomtst2.c
diff --git
a/zoom/zoomtst2.c
b/zoom/zoomtst2.c
index
c0d85db
..
1ff3612
100644
(file)
--- a/
zoom/zoomtst2.c
+++ b/
zoom/zoomtst2.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: zoomtst2.c,v 1.3 2001-11-18 21:14:23 adam Exp $
+ * $Id: zoomtst2.c,v 1.5 2002-12-09 23:32:29 adam Exp $
*
* Asynchronous single-target client performing search (no retrieval)
*/
*
* Asynchronous single-target client performing search (no retrieval)
*/
@@
-14,13
+14,13
@@
int main(int argc, char **argv)
ZOOM_connection z;
ZOOM_resultset r;
int error;
ZOOM_connection z;
ZOOM_resultset r;
int error;
- const char *errmsg, *addinfo;
+ const char *errmsg, *addinfo, *diagset;
if (argc < 3)
{
fprintf (stderr, "usage:\n%s target query\n", *argv);
fprintf (stderr,
if (argc < 3)
{
fprintf (stderr, "usage:\n%s target query\n", *argv);
fprintf (stderr,
- "Verify: aasynchronous single-target client\n");
+ "Verify: asynchronous single-target client\n");
exit (1);
}
exit (1);
}
@@
-41,9
+41,10
@@
int main(int argc, char **argv)
;
/* see if any error occurred */
;
/* see if any error occurred */
- if ((error = ZOOM_connection_error(z, &errmsg, &addinfo)))
+ if ((error = ZOOM_connection_error_x(z, &errmsg, &addinfo, &diagset)))
{
{
- fprintf (stderr, "Error: %s (%d) %s\n", errmsg, error, addinfo);
+ fprintf (stderr, "Error: %s: %s (%d) %s\n", diagset, errmsg, error,
+ addinfo);
exit (2);
}
else /* OK print hit count */
exit (2);
}
else /* OK print hit count */