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
More on supported platforms
[yaz-moved-to-github.git]
/
ztest
/
ztest.c
diff --git
a/ztest/ztest.c
b/ztest/ztest.c
index
d476d0c
..
7274130
100644
(file)
--- a/
ztest/ztest.c
+++ b/
ztest/ztest.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1995-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: ztest.c,v 1.54 2003-01-06 08:20:29 adam Exp $
+ * $Id: ztest.c,v 1.56 2003-02-28 15:59:02 adam Exp $
*/
/*
*/
/*
@@
-13,9
+13,8
@@
#include <stdlib.h>
#include <ctype.h>
#include <stdlib.h>
#include <ctype.h>
+#include <yaz/yaz-util.h>
#include <yaz/backend.h>
#include <yaz/backend.h>
-#include <yaz/log.h>
-
#include <yaz/ill.h>
Z_GenericRecord *dummy_grs_record (int num, ODR o);
#include <yaz/ill.h>
Z_GenericRecord *dummy_grs_record (int num, ODR o);
@@
-35,7
+34,7
@@
int ztest_search (void *handle, bend_search_rr *rr)
rr->errcode = 23;
return 0;
}
rr->errcode = 23;
return 0;
}
- if (strcmp (rr->basenames[0], "Default"))
+ if (yaz_matchstr (rr->basenames[0], "Default"))
{
rr->errcode = 109;
rr->errstring = rr->basenames[0];
{
rr->errcode = 109;
rr->errstring = rr->basenames[0];
@@
-599,7
+598,8
@@
int ztest_scan(void *handle, bend_scan_rr *q)
bend_initresult *bend_init(bend_initrequest *q)
{
bend_initresult *bend_init(bend_initrequest *q)
{
- bend_initresult *r = (bend_initresult *) odr_malloc (q->stream, sizeof(*r));
+ bend_initresult *r = (bend_initresult *)
+ odr_malloc (q->stream, sizeof(*r));
int *counter = (int *) xmalloc (sizeof(int));
*counter = 0;
int *counter = (int *) xmalloc (sizeof(int));
*counter = 0;