From: Martin Mares Date: Sat, 22 Nov 2003 18:22:34 +0000 (+0000) Subject: Replaced obuck_fetch_end() by bclose() (which is a nop as obuck_fetch_end was :) ). X-Git-Tag: holmes-import~1160 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=89b67b2c54822c7867d8a91a896386f632d2051e;p=libucw.git Replaced obuck_fetch_end() by bclose() (which is a nop as obuck_fetch_end was :) ). --- diff --git a/lib/bucket.c b/lib/bucket.c index af6b46bf..51ca9ccc 100644 --- a/lib/bucket.c +++ b/lib/bucket.c @@ -267,11 +267,6 @@ obuck_fetch(void) return obuck_fb; } -void -obuck_fetch_end(struct fastbuf *b UNUSED) -{ -} - oid_t obuck_predict_last_oid(void) { @@ -586,7 +581,7 @@ int main(int argc, char **argv) die("Contents mismatch"); if (bgetc(b) != EOF) die("EOF mismatch"); - obuck_fetch_end(b); + bclose(b); } if (obuck_find_first(&h, 0)) do diff --git a/lib/bucket.h b/lib/bucket.h index ac14a6dd..815213ca 100644 --- a/lib/bucket.h +++ b/lib/bucket.h @@ -64,7 +64,6 @@ int obuck_find_next(struct obuck_header *hdrp, int full); /* Reading current bucket */ struct fastbuf *obuck_fetch(void); -void obuck_fetch_end(struct fastbuf *b); /* Creating buckets */ struct fastbuf *obuck_create(u32 type); diff --git a/lib/buckettool.c b/lib/buckettool.c index c911e5ce..aeec5373 100644 --- a/lib/buckettool.c +++ b/lib/buckettool.c @@ -96,7 +96,7 @@ extract(char *id) b = obuck_fetch(); while ((l = bread(b, buf, sizeof(buf)))) fwrite(buf, 1, l, stdout); - obuck_fetch_end(b); + bclose(b); obuck_cleanup(); }