X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fyaz-xmlquery.c;h=7ad6804a6a89f4fea7cf95d8a54c5f2b167d3a9a;hp=dae8105d43be367784579fbc48f5e61e1b5c179f;hb=f36abe0a776fa52b972a3fec1b46b94e26814f22;hpb=88d3bedf772316f87e1996f655ccf8d1e2589755 diff --git a/util/yaz-xmlquery.c b/util/yaz-xmlquery.c index dae8105..7ad6804 100644 --- a/util/yaz-xmlquery.c +++ b/util/yaz-xmlquery.c @@ -1,7 +1,10 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -49,9 +52,9 @@ void pqftoxmlquery(const char *pqf) else { xmlDocPtr doc = 0; - + yaz_rpnquery2xml(rpn, &doc); - + if (!doc) { fprintf(stderr, "%s: yaz_rpnquery2xml failed for query %s\n", @@ -81,7 +84,7 @@ void pqftoxmlquery(const char *pqf) } xmlFreeDoc(doc); } - } + } odr_destroy(odr); } @@ -159,7 +162,7 @@ void xmlfiletopqf(const char *xmlfile) fprintf(stderr, "%s: close failed for file %s\n", prog, xmlfile); exit(1); } - + xmlquerytopqf(xmlstr); xfree(xmlstr); }