X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fbuckettool.c;h=6458c539a1268ad342cdbcabc76b6967f3738ca2;hb=c356224de3a2adf464369492c981503241661272;hp=396138af41c1a89808c569c32ff8d35c7f153b03;hpb=0a4083a5a04131565d858d2feb699562aeaecf0f;p=libucw.git diff --git a/lib/buckettool.c b/lib/buckettool.c index 396138af..6458c539 100644 --- a/lib/buckettool.c +++ b/lib/buckettool.c @@ -156,7 +156,7 @@ insert(byte *arg) die("Type `%s' is not a hexadecimal number"); if (type < 10) type += BUCKET_TYPE_PLAIN; - attr_set_type(type); + put_attr_set_type(type); in = bfdopen_shared(0, 4096); obuck_init(1); @@ -236,7 +236,7 @@ cat(void) obuck_init(0); out = bfdopen_shared(1, 65536); - while (b = obuck_slurp_pool(&h)) + while (b = obuck_slurp_pool(&h, OBUCK_OID_ANY)) { bprintf(out, "### %08x %6d %08x\n", h.oid, h.length, h.type); if (h.type < BUCKET_TYPE_V33 || !buck_buf)