Update source headers for 2008. Omit CVS ID keyword subst.
[yaz-moved-to-github.git] / test / tstwrbuf.c
index 5888afe..79e5388 100644 (file)
@@ -1,8 +1,6 @@
-/*
- * Copyright (C) 1995-2005, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
  * See the file LICENSE for details.
- *
- * $Id: tstwrbuf.c,v 1.5 2006-01-29 21:59:13 adam Exp $
  */
 
 #include <stdlib.h>
@@ -18,7 +16,7 @@ static void tstwrbuf(void)
 
     YAZ_CHECK(wr);
 
-    wrbuf_free(wr, 1);
+    wrbuf_destroy(wr);
 
     wr = wrbuf_alloc();
 
@@ -50,7 +48,7 @@ static void tstwrbuf(void)
             }
         wrbuf_rewind(wr);
     }
-    wrbuf_free(wr, 1);
+    wrbuf_destroy(wr);
 }
 
 int main (int argc, char **argv)