projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
065f7bc
)
Fixed scan for bad CCL.
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 27 Mar 2001 14:48:06 +0000
(14:48 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 27 Mar 2001 14:48:06 +0000
(14:48 +0000)
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
25a299c
..
9a43b95
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-3,7
+3,10
@@
* See the file LICENSE for details.
*
* $Log: client.c,v $
* See the file LICENSE for details.
*
* $Log: client.c,v $
- * Revision 1.117 2001-03-25 21:55:12 adam
+ * Revision 1.118 2001-03-27 14:48:06 adam
+ * Fixed scan for bad CCL.
+ *
+ * Revision 1.117 2001/03/25 21:55:12 adam
* Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate.
*
* Revision 1.116 2001/03/21 12:43:36 adam
* Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate.
*
* Revision 1.116 2001/03/21 12:43:36 adam
@@
-1881,7
+1884,7
@@
int send_scanrequest(const char *query, int pp, int num, const char *term)
if (error)
{
printf("CCL ERROR: %s\n", ccl_err_msg(error));
if (error)
{
printf("CCL ERROR: %s\n", ccl_err_msg(error));
- return 0;
+ return -1;
}
use_rpn = 0;
bib1.proto = PROTO_Z3950;
}
use_rpn = 0;
bib1.proto = PROTO_Z3950;
@@
-1891,7
+1894,7
@@
int send_scanrequest(const char *query, int pp, int num, const char *term)
if (!(req->termListAndStartPoint = ccl_scan_query (out, rpn)))
{
printf("Couldn't convert CCL to Scan term\n");
if (!(req->termListAndStartPoint = ccl_scan_query (out, rpn)))
{
printf("Couldn't convert CCL to Scan term\n");
- return 0;
+ return -1;
}
ccl_rpn_delete (rpn);
}
}
ccl_rpn_delete (rpn);
}