X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-buffer.c;h=d8094eb027e2c880c69da1f0fda4550362deaeeb;hb=ba9c448bb5446d0100173e7a594bcb1d849b4e39;hp=09c7429357e6c518e9630b418067037e4986a43f;hpb=06e407148505bb6f8fb92592d8484062362256ef;p=libucw.git diff --git a/lib/fb-buffer.c b/lib/fb-buffer.c index 09c74293..d8094eb0 100644 --- a/lib/fb-buffer.c +++ b/lib/fb-buffer.c @@ -10,6 +10,7 @@ #include "lib/lib.h" #include "lib/fastbuf.h" +#include #include static int @@ -18,7 +19,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 +30,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