]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-buffer.c
Fastbufs now work better on unseekable files.
[libucw.git] / lib / fb-buffer.c
index 09c7429357e6c518e9630b418067037e4986a43f..9ad248a289db329ecabec693c29f103c78e47965 100644 (file)
@@ -18,7 +18,7 @@ fbbuf_refill(struct fastbuf *f UNUSED)
   return 0;
 }
 
-static void
+static int
 fbbuf_seek(struct fastbuf *f, sh_off_t pos, int whence)
 {
   /* Somebody might want to seek to the end of buffer, try to be nice to him. */
@@ -29,6 +29,7 @@ fbbuf_seek(struct fastbuf *f, sh_off_t pos, int whence)
   f->bptr = f->buffer + pos;
   f->bstop = f->bufend;
   f->pos = len;
+  return 1;
 }
 
 void