X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=bfile%2Ftstbfile2.c;h=06a182406a59848000587b8497e7afe762eac239;hp=988d352ce67beeaa1649683fde59ad761c7dc840;hb=c00bfddbf0f3608340d61298acc61dafb167f9b2;hpb=89d3a004b7c651fd5673abfc192e1472dc4d4197 diff --git a/bfile/tstbfile2.c b/bfile/tstbfile2.c index 988d352..06a1824 100644 --- a/bfile/tstbfile2.c +++ b/bfile/tstbfile2.c @@ -1,8 +1,5 @@ -/* $Id: tstbfile2.c,v 1.4 2007-01-15 15:10:14 adam Exp $ - Copyright (C) 1995-2007 - 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 @@ -42,7 +42,7 @@ void tst(void) return; YAZ_CHECK(max_block * block_size < 4 * 1000000); /* 4M */ - + r = mkdir("register", 0777); YAZ_CHECK(r == 0 || (r == -1 && errno == EEXIST)); @@ -152,7 +152,7 @@ void tst(void) { zint bno = 0; int step = max_block / 50; - + while (bno < max_block) { memset(buf, ' ', block_size); @@ -172,6 +172,7 @@ void tst(void) int main(int argc, char **argv) { YAZ_CHECK_INIT(argc, argv); + YAZ_CHECK_LOG(); tst(); YAZ_CHECK_TERM; }