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
CQL: fix extra terms in wrong order
[yaz-moved-to-github.git]
/
util
/
srwtst.c
diff --git
a/util/srwtst.c
b/util/srwtst.c
index
5c3d4bd
..
e387750
100644
(file)
--- a/
util/srwtst.c
+++ b/
util/srwtst.c
@@
-1,7
+1,10
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2012 Index Data
* 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/srw.h>
#include <stdlib.h>
#include <yaz/srw.h>
@@
-17,7
+20,6
@@
int main(int argc, char **argv)
char buf[163840];
char *content_buf = buf;
int content_len;
char buf[163840];
char *content_buf = buf;
int content_len;
- int ret;
size_t no;
Z_SOAP *soap_package = 0;
ODR decode, encode;
size_t no;
Z_SOAP *soap_package = 0;
ODR decode, encode;
@@
-34,8
+36,8
@@
int main(int argc, char **argv)
decode = odr_createmem(ODR_DECODE);
encode = odr_createmem(ODR_ENCODE);
content_len = no;
decode = odr_createmem(ODR_DECODE);
encode = odr_createmem(ODR_ENCODE);
content_len = no;
- ret = z_soap_codec(decode, &soap_package,
- &content_buf, &content_len, h);
+ z_soap_codec(decode, &soap_package,
+ &content_buf, &content_len, h);
if (!soap_package)
{
fprintf(stderr, "Decoding seriously failed\n");
if (!soap_package)
{
fprintf(stderr, "Decoding seriously failed\n");
@@
-85,8
+87,7
@@
int main(int argc, char **argv)
}
}
}
}
- ret = z_soap_codec(encode, &soap_package,
- &content_buf, &content_len, h);
+ z_soap_codec(encode, &soap_package, &content_buf, &content_len, h);
if (content_buf && content_len)
{
printf("%.*s", content_len, content_buf);
if (content_buf && content_len)
{
printf("%.*s", content_len, content_buf);