X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-mmap.c;h=41e65832653c8c16180920d78172bc6221428e63;hb=d894fe2e0d3bc2d3d9d3a2b84d372fb2ea2b5ca0;hp=85dc27ee2c10566e4d77d222acad39e87d495a4c;hpb=0b49b79a9debe807b2db229bac32a273e2e961b3;p=libucw.git diff --git a/lib/fb-mmap.c b/lib/fb-mmap.c index 85dc27ee..41e65832 100644 --- a/lib/fb-mmap.c +++ b/lib/fb-mmap.c @@ -117,7 +117,7 @@ bfmm_spout(struct fastbuf *f) DBG(" -> %p %p %p(%x) %p", f->buffer, f->bptr, f->bstop, (int)f->pos, f->bufend); } -static void +static int bfmm_seek(struct fastbuf *f, sh_off_t pos, int whence) { if (whence == SEEK_END) @@ -128,6 +128,7 @@ bfmm_seek(struct fastbuf *f, sh_off_t pos, int whence) f->pos = pos; f->bptr = f->bstop = f->bufend; /* force refill/spout call */ DBG("Seek -> %p %p %p(%x) %p", f->buffer, f->bptr, f->bstop, (int)f->pos, f->bufend); + return 1; } static void