X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstpquery.c;h=ef4b43a6c69fe33ff3159f178799e3355f49150f;hb=fde5f3463df4cdaf15ad7bb483a1758e1c8cd7b0;hp=f099862f7fc201678eaff5d7caa76291c71dfb27;hpb=8d691989077a0addcbd840d769dce6700f3d9622;p=yaz-moved-to-github.git diff --git a/test/tstpquery.c b/test/tstpquery.c index f099862..ef4b43a 100644 --- a/test/tstpquery.c +++ b/test/tstpquery.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: tstpquery.c,v 1.4 2007-01-03 08:42:16 adam Exp $ */ #include @@ -45,9 +43,9 @@ int expect_pqf(const char *pqf, const char *expect_pqf, int expect_error) { yaz_rpnquery_to_wrbuf(wrbuf, rpn); - if (!strcmp(wrbuf_buf(wrbuf), expect_pqf)) + if (!strcmp(wrbuf_cstr(wrbuf), expect_pqf)) res = 1; - wrbuf_free(wrbuf, 1); + wrbuf_destroy(wrbuf); } } yaz_pqf_destroy(parser);