X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=inline;f=bfile%2Fmfile.c;h=ecd795d6dd7931e1df8f44854d8f9952ac76a3d3;hb=94bf7abfff6a30fab5567d8275db14122ed01822;hp=189f2020f1e732e417b78610f63d5231a2383bfa;hpb=6c9fcd3b5d3108702fa1ffc92dab4ab6060f9a19;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.c b/bfile/mfile.c index 189f202..ecd795d 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -1,4 +1,4 @@ -/* $Id: mfile.c,v 1.58 2005-01-15 19:38:17 adam Exp $ +/* $Id: mfile.c,v 1.61 2005-05-17 08:50:48 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -43,7 +43,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include +#include +#include #include "mfile.h" static int scan_areadef(MFile_area ma, const char *ad, const char *base) @@ -160,7 +161,7 @@ static zint file_position(MFile mf, zint pos, int offset) if (!mf->wr && errno == ENOENT && off == 0) return -2; yaz_log (YLOG_WARN|YLOG_ERRNO, "Failed to open %s", mf->files[c].path); - return -1; + return -1; } } ps = pos - off;