X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffastbuf.c;h=0939b6d512533ad5bb9979b45eb3193a2b6879f8;hb=4390bf90103265fe6e11f4c446b78f38bdc132b3;hp=717372fdfcfb42f797b1d2199d96d87f86467216;hpb=168c1f2ddcb8ce07248b4079b6398afe8c2d792a;p=libucw.git diff --git a/lib/fastbuf.c b/lib/fastbuf.c index 717372fd..0939b6d5 100644 --- a/lib/fastbuf.c +++ b/lib/fastbuf.c @@ -4,17 +4,17 @@ * (c) 1997--2000 Martin Mares */ +#include "lib/lib.h" +#include "lib/fastbuf.h" + #include #include -#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: