X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-grow.c;h=a5ed4d685a0c7c5adf1a43d0ba0c40942545ea73;hb=39d5e9acc6d93c07cbb408fe27144c8a485499ac;hp=0b04817fcc1caa6855845700ec175a911e4e4aab;hpb=fd6518b811bbe6986a933f9cfc73d14834153dcd;p=libucw.git diff --git a/lib/fb-grow.c b/lib/fb-grow.c index 0b04817f..a5ed4d68 100644 --- a/lib/fb-grow.c +++ b/lib/fb-grow.c @@ -10,6 +10,7 @@ #include "lib/lib.h" #include "lib/fastbuf.h" +#include #include struct fb_gbuf { @@ -45,7 +46,7 @@ fbgrow_spout(struct fastbuf *b) } } -static void +static int fbgrow_seek(struct fastbuf *b, sh_off_t pos, int whence) { ASSERT(FB_GBUF(b)->last_written); /* Seeks allowed only in read mode */ @@ -56,6 +57,7 @@ fbgrow_seek(struct fastbuf *b, sh_off_t pos, int whence) b->bptr = b->buffer + pos; b->bstop = FB_GBUF(b)->last_written; b->pos = len; + return 1; } static void