Update source headers for 2008. Omit CVS ID keyword subst.
[yaz-moved-to-github.git] / util / marcdump.c
index 03ae3a2..ed2096a 100644 (file)
@@ -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: marcdump.c,v 1.55 2007-12-18 21:13:06 adam Exp $
  */
 
 #define _FILE_OFFSET_BITS 64
@@ -103,12 +101,6 @@ static void marcdump_read_line(yaz_marc_t mt, const char *fname)
         fputs(wrbuf_cstr(wrbuf), stdout);
         wrbuf_destroy(wrbuf);
     }
-    {
-        WRBUF wrbuf = wrbuf_alloc();
-        yaz_marc_write_trailer(mt, wrbuf);
-        fputs(wrbuf_cstr(wrbuf), stdout);
-        wrbuf_destroy(wrbuf);
-    }
     fclose(inf);
 }
 
@@ -147,8 +139,6 @@ static void marcdump_read_xml(yaz_marc_t mt, const char *fname)
                 }
             }
         }
-        yaz_marc_write_trailer(mt, wrbuf);
-        fputs(wrbuf_cstr(wrbuf), stdout);
     }
 #else
     xmlDocPtr doc = xmlParseFile(fname);
@@ -182,7 +172,6 @@ static void marcdump_read_xml(yaz_marc_t mt, const char *fname)
         xmlFreeDoc(doc);
     }
 #endif
-    yaz_marc_write_trailer(mt, wrbuf);
     fputs(wrbuf_cstr(wrbuf), stdout);
     wrbuf_destroy(wrbuf);
 }