X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Ftstmfile1.c;h=24caca253af5a9caed455dc7ddc6d179c864b95c;hb=bdf0f406d66c4702c3b8942d1bb33a9212283138;hp=1bd394ef9944b1a5fc37a513b552b59d66de3105;hpb=35f67dc85e5507c1edc1fecbc2835fab0255ada4;p=idzebra-moved-to-github.git diff --git a/bfile/tstmfile1.c b/bfile/tstmfile1.c index 1bd394e..24caca2 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) 2004-2013 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);