X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstpquery.c;h=f76adde9815b97e52db3f5e2fc1ce1b2e8bad0f7;hp=1084626c62386315e018908ed5037c70cd55bfb7;hb=510bacff7df017db33072de7bc204d22a6b5535d;hpb=9dfcbb70828f8d5b524c9bb45852246ae1dd6878 diff --git a/test/tstpquery.c b/test/tstpquery.c index 1084626..f76adde 100644 --- a/test/tstpquery.c +++ b/test/tstpquery.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: tstpquery.c,v 1.3 2006-10-04 16:59:34 mike 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); @@ -79,6 +77,7 @@ int main (int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab