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 leak for odr_print of ZOOM connection.
[yaz-moved-to-github.git]
/
test
/
tstxmlquery.c
diff --git
a/test/tstxmlquery.c
b/test/tstxmlquery.c
index
c79f285
..
1b6dc1b
100644
(file)
--- a/
test/tstxmlquery.c
+++ b/
test/tstxmlquery.c
@@
-1,8
+1,6
@@
-/*
- * Copyright (C) 1995-2005, 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: tstxmlquery.c,v 1.13 2006-10-04 16:59:34 mike Exp $
*/
#include <stdlib.h>
*/
#include <stdlib.h>
@@
-78,14
+76,14
@@
enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml,
{
WRBUF w = wrbuf_alloc();
yaz_query_to_wrbuf(w, query2);
{
WRBUF w = wrbuf_alloc();
yaz_query_to_wrbuf(w, query2);
- if (!expect_pqf || strcmp(expect_pqf, wrbuf_buf(w)) == 0)
+ if (!expect_pqf || strcmp(expect_pqf, wrbuf_cstr(w)) == 0)
status = XML_MATCH;
else
{
status = XML_NO_MATCH;
status = XML_MATCH;
else
{
status = XML_NO_MATCH;
- printf("Result: %s\n", wrbuf_buf(w));
+ printf("Result: %s\n", wrbuf_cstr(w));
}
}
- wrbuf_free(w, 1);
+ wrbuf_destroy(w);
}
odr_destroy(odr2);
}
}
odr_destroy(odr2);
}
@@
-242,6
+240,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