]> mj.ucw.cz Git - libucw.git/commitdiff
Replaced obuck_fetch_end() by bclose() (which is a nop as obuck_fetch_end was :) ).
authorMartin Mares <mj@ucw.cz>
Sat, 22 Nov 2003 18:22:34 +0000 (18:22 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 22 Nov 2003 18:22:34 +0000 (18:22 +0000)
lib/bucket.c
lib/bucket.h
lib/buckettool.c

index af6b46bf1ffcd6a40ca9624ea481bfa97d548943..51ca9ccc36f30756bf56fd5833fc52e4271630d0 100644 (file)
@@ -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
index ac14a6ddb01c99c070054b023140dd1798bb850d..815213ca8ea793e19205e8e45c997d2878503d60 100644 (file)
@@ -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);
index c911e5ce694937f5e111e56354bd4314a0b5bf1e..aeec5373def62cc4861c6558fd2436068e19be54 100644 (file)
@@ -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();
 }