X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstwrbuf.c;h=af06e40d800b407c2d0cc254717121ea29815b55;hb=055f23ee3692349a03f681ef1a0d5fd70c0cc770;hp=e1ed5f61342ce4b7aaeb0d26f381fb0e7113b2d8;hpb=8d691989077a0addcbd840d769dce6700f3d9622;p=yaz-moved-to-github.git diff --git a/test/tstwrbuf.c b/test/tstwrbuf.c index e1ed5f6..af06e40 100644 --- a/test/tstwrbuf.c +++ b/test/tstwrbuf.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. - * - * $Id: tstwrbuf.c,v 1.6 2007-01-03 08:42:16 adam Exp $ */ #include @@ -14,11 +12,14 @@ static void tstwrbuf(void) { int step; - WRBUF wr = wrbuf_alloc(); + WRBUF wr; - YAZ_CHECK(wr); + wr = 0; + wrbuf_destroy(wr); - wrbuf_free(wr, 1); + wr = wrbuf_alloc(); + YAZ_CHECK(wr); + wrbuf_destroy(wr); wr = wrbuf_alloc(); @@ -50,7 +51,7 @@ static void tstwrbuf(void) } wrbuf_rewind(wr); } - wrbuf_free(wr, 1); + wrbuf_destroy(wr); } int main (int argc, char **argv) @@ -63,6 +64,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