X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=bfile%2Ftstmfile1.c;h=ad3cd93f23f6a7eb6a930cc50339ec85694a35dc;hp=1bd394ef9944b1a5fc37a513b552b59d66de3105;hb=HEAD;hpb=35f67dc85e5507c1edc1fecbc2835fab0255ada4 diff --git a/bfile/tstmfile1.c b/bfile/tstmfile1.c index 1bd394e..ad3cd93 100644 --- a/bfile/tstmfile1.c +++ b/bfile/tstmfile1.c @@ -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 +#endif #include #include #include @@ -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);