X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstxmlquery.c;h=08578042f7398f73205d13cd6361269a612f8e08;hp=c79f285a2a4dbb9d0fa0a2682e06a699ba953816;hb=aaf2ab15830321d9db33cd2e47f739fb52324110;hpb=9dfcbb70828f8d5b524c9bb45852246ae1dd6878 diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index c79f285..0857804 100644 --- a/test/tstxmlquery.c +++ b/test/tstxmlquery.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tstxmlquery.c,v 1.13 2006-10-04 16:59:34 mike Exp $ + * $Id: tstxmlquery.c,v 1.16 2007-03-19 22:17:41 adam Exp $ */ #include @@ -78,14 +78,14 @@ enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml, { 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; - printf("Result: %s\n", wrbuf_buf(w)); + printf("Result: %s\n", wrbuf_cstr(w)); } - wrbuf_free(w, 1); + wrbuf_destroy(w); } odr_destroy(odr2); }