]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-file.c
simplified usage of Log & Die
[libucw.git] / lib / fb-file.c
index c45432775ca2ba2349a05f4a2a7ffa4143e84cfd..a7290cbf8688f9de261a38c4e50dbb9584eee91e 100644 (file)
@@ -11,6 +11,7 @@
 #include "lib/fastbuf.h"
 #include "lib/lfs.h"
 
+#include <stdio.h>
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -56,9 +57,6 @@ bfd_spout(struct fastbuf *f)
 static int
 bfd_seek(struct fastbuf *f, sh_off_t pos, int whence)
 {
-  if (whence == SEEK_SET && pos == f->pos)
-    return 1;
-
   sh_off_t l = sh_seek(FB_FILE(f)->fd, pos, whence);
   if (l < 0)
     return 0;