]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-buffer.c
Readding line of makefile lost in merge
[libucw.git] / lib / fb-buffer.c
index 09c7429357e6c518e9630b418067037e4986a43f..d8094eb027e2c880c69da1f0fda4550362deaeeb 100644 (file)
@@ -10,6 +10,7 @@
 #include "lib/lib.h"
 #include "lib/fastbuf.h"
 
 #include "lib/lib.h"
 #include "lib/fastbuf.h"
 
+#include <stdio.h>
 #include <stdlib.h>
 
 static int
 #include <stdlib.h>
 
 static int
@@ -18,7 +19,7 @@ fbbuf_refill(struct fastbuf *f UNUSED)
   return 0;
 }
 
   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. */
 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;
   f->bptr = f->buffer + pos;
   f->bstop = f->bufend;
   f->pos = len;
+  return 1;
 }
 
 void
 }
 
 void