X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftst_retrieval.c;h=8ed48ea5251457d8be4aae816c685dfbadaacb33;hb=e6f45fddb3d4267340ad320dbedfbf5cb68c4d21;hp=3e5cd564e975808cb016edbb3cef5815173dc96c;hpb=ca44977409b92a8b1c7bfbc913a6422edc41d1d5;p=yaz-moved-to-github.git diff --git a/test/tst_retrieval.c b/test/tst_retrieval.c index 3e5cd56..8ed48ea 100644 --- a/test/tst_retrieval.c +++ b/test/tst_retrieval.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 2005-2006, Index Data ApS + * Copyright (C) 2005-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tst_retrieval.c,v 1.8 2006-12-12 10:41:39 marc Exp $ + * $Id: tst_retrieval.c,v 1.10 2007-03-19 14:40:07 adam Exp $ * */ #include @@ -76,12 +76,12 @@ int conv_configure_test(const char *xmlstring, const char *expect_error, if (!p) { - if (expect_error && !strcmp(wrbuf_buf(w), expect_error)) + if (expect_error && !strcmp(wrbuf_cstr(w), expect_error)) ret = 1; else { ret = 0; - printf("%.*s\n", wrbuf_len(w), wrbuf_buf(w)); + printf("%s\n", wrbuf_cstr(w)); } } else @@ -100,7 +100,7 @@ int conv_configure_test(const char *xmlstring, const char *expect_error, ret = 1; } } - wrbuf_free(w, 1); + wrbuf_destroy(w); return ret; }