X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Ftstbfile1.c;h=81f3209fe7a42f75024e2e853acd7f612eba23d3;hb=46289c8b713538e12f49160e8e6eb79e131e8a20;hp=567541e75839fc58e71d56a338d24f2b7e3c18c7;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/bfile/tstbfile1.c b/bfile/tstbfile1.c index 567541e..81f3209 100644 --- a/bfile/tstbfile1.c +++ b/bfile/tstbfile1.c @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -29,16 +32,16 @@ void tst1(BFiles bfs) const char *more_info = 0; bf_reset(bfs); - bf = bf_xopen(bfs, "tst", /* block size */ 32, + bf = bf_xopen(bfs, "tst", /* block size */ 32, /* wr */ 1, "tstmagic", &version, 0 /* more_info */); YAZ_CHECK(bf); if (!bf) return; bf_xclose(bf, version, "more info"); - - bf = bf_xopen(bfs, "tst", /* block size */ 32, + + bf = bf_xopen(bfs, "tst", /* block size */ 32, /* wr */ 1, "tstmagic", &version, &more_info); - + YAZ_CHECK(bf); if (!bf) return; @@ -55,7 +58,7 @@ void tst2(BFiles bfs) BFile bf; bf_reset(bfs); - bf = bf_xopen(bfs, "tst", /* block size */ 32, + bf = bf_xopen(bfs, "tst", /* block size */ 32, /* wr */ 1, "tstmagic", &version, 0 /* more_info */); YAZ_CHECK(bf); if (!bf) @@ -95,7 +98,7 @@ void tst3(BFiles bfs) for(i = 0; i