X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-file.c;h=a7290cbf8688f9de261a38c4e50dbb9584eee91e;hb=44272b66e0a9bead64965973d53a42ecff358fef;hp=c45432775ca2ba2349a05f4a2a7ffa4143e84cfd;hpb=d894fe2e0d3bc2d3d9d3a2b84d372fb2ea2b5ca0;p=libucw.git diff --git a/lib/fb-file.c b/lib/fb-file.c index c4543277..a7290cbf 100644 --- a/lib/fb-file.c +++ b/lib/fb-file.c @@ -11,6 +11,7 @@ #include "lib/fastbuf.h" #include "lib/lfs.h" +#include #include #include #include @@ -56,9 +57,6 @@ bfd_spout(struct fastbuf *f) static int bfd_seek(struct fastbuf *f, sh_off_t pos, int whence) { - if (whence == SEEK_SET && pos == f->pos) - return 1; - sh_off_t l = sh_seek(FB_FILE(f)->fd, pos, whence); if (l < 0) return 0;