X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-buffer.c;h=d8094eb027e2c880c69da1f0fda4550362deaeeb;hb=35257848f97710b8107e20f690404cfaf0838f74;hp=09c7429357e6c518e9630b418067037e4986a43f;hpb=47a0795e8a28e8ad6ff55cda89e300267d9e590c;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