X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.c;h=ecd795d6dd7931e1df8f44854d8f9952ac76a3d3;hb=6d2647676d01d9493897295d1830badec3e4f27a;hp=69a062a8ff16d2f5bc59d9e21f4f9eb12696c78d;hpb=deff57cfa9d9b39c4a4f1c9b82a64c6e61d821a4;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.c b/bfile/mfile.c index 69a062a..ecd795d 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -1,4 +1,4 @@ -/* $Id: mfile.c,v 1.59 2005-03-30 09:25:23 adam Exp $ +/* $Id: mfile.c,v 1.61 2005-05-17 08:50:48 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -44,6 +44,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #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;