Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git] / bfile / tstmfile1.c
index 1bd394e..ad3cd93 100644 (file)
@@ -1,8 +1,5 @@
-/* $Id: tstmfile1.c,v 1.1 2006-11-14 12:41:19 adam Exp $
-   Copyright (C) 1995-2006
-   Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+   Copyright (C) Index Data
 
 Zebra is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -20,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 */
 
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <errno.h>
@@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 void tst1(void)
 {
-    MFile_area a = mf_init("main", 0 /* spec */, 0 /* base */);
+    MFile_area a = mf_init("main", 0 /* spec */, 0 /* base */, 0 /* only sh */);
     YAZ_CHECK(a);
     mf_destroy(a);
 }
@@ -40,7 +40,7 @@ void tst1(void)
 void tst2(void)
 {
     char buf[BLOCK_SIZE];
-    MFile_area a = mf_init("main", 0 /* spec */, 0 /* base */);
+    MFile_area a = mf_init("main", 0 /* spec */, 0 /* base */, 0 /* only sh */);
     MFile f;
 
     YAZ_CHECK(a);
@@ -51,7 +51,7 @@ void tst2(void)
     YAZ_CHECK(f);
 
     YAZ_CHECK_EQ(mf_read(f, 0, 0, 0, buf), 0);
-    
+
     memset(buf, 'a', BLOCK_SIZE);
     YAZ_CHECK_EQ(mf_write(f, 0, 0, 0, buf), 0);