]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.c
Use OBUCK_INCOMPLETE_MAGIC for incomplete entries.
[libucw.git] / lib / fastbuf.c
index 717372fdfcfb42f797b1d2199d96d87f86467216..0939b6d512533ad5bb9979b45eb3193a2b6879f8 100644 (file)
@@ -4,17 +4,17 @@
  *     (c) 1997--2000 Martin Mares <mj@ucw.cz>
  */
 
+#include "lib/lib.h"
+#include "lib/fastbuf.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 
-#include "lib.h"
-#include "fastbuf.h"
-
 void bclose(struct fastbuf *f)
 {
   bflush(f);
   f->close(f);
-  free(f);
+  xfree(f);
 }
 
 void bflush(struct fastbuf *f)
@@ -44,8 +44,6 @@ inline void bsetpos(struct fastbuf *f, sh_off_t pos)
 
 void bseek(struct fastbuf *f, sh_off_t pos, int whence)
 {
-  sh_off_t l;
-
   switch (whence)
     {
     case SEEK_SET: