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
Fix install doc rule for Automake 1.11
[yaz-moved-to-github.git]
/
test
/
tstsoap2.c
diff --git
a/test/tstsoap2.c
b/test/tstsoap2.c
index
230d403
..
cc9a820
100644
(file)
--- a/
test/tstsoap2.c
+++ b/
test/tstsoap2.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: tstsoap2.c,v 1.6 2007-01-03 08:42:16 adam Exp $
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-25,19
+23,19
@@
static void tst_srw(void)
{0, 0, 0}
};
Z_SRW_PDU *sr = yaz_srw_get(o, Z_SRW_searchRetrieve_request);
{0, 0, 0}
};
Z_SRW_PDU *sr = yaz_srw_get(o, Z_SRW_searchRetrieve_request);
- Z_SOAP *p = odr_malloc(o, sizeof(*p));
+ Z_SOAP *p = (Z_SOAP *) odr_malloc(o, sizeof(*p));
YAZ_CHECK(o);
YAZ_CHECK(sr);
YAZ_CHECK(p);
#if 0
YAZ_CHECK(o);
YAZ_CHECK(sr);
YAZ_CHECK(p);
#if 0
- sr->u.request->query.cql = "jordbær";
+ sr->u.request->query.cql = "jordb" "\xe6" "r";
#else
sr->u.request->query.cql = "jordbaer";
#endif
p->which = Z_SOAP_generic;
#else
sr->u.request->query.cql = "jordbaer";
#endif
p->which = Z_SOAP_generic;
- p->u.generic = odr_malloc(o, sizeof(*p->u.generic));
+ p->u.generic = (Z_SOAP_Generic *) odr_malloc(o, sizeof(*p->u.generic));
p->u.generic->no = 0;
p->u.generic->ns = 0;
p->u.generic->p = sr;
p->u.generic->no = 0;
p->u.generic->ns = 0;
p->u.generic->p = sr;
@@
-61,6
+59,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