From beac4661ae8230dd1747cb4ebbfddc016183b140 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Mon, 28 Jun 2004 12:59:14 +0000 Subject: [PATCH] dump_parsed_bucket() simplified --- lib/buckettool.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/lib/buckettool.c b/lib/buckettool.c index a7900522..4b7847a5 100644 --- a/lib/buckettool.c +++ b/lib/buckettool.c @@ -107,22 +107,14 @@ dump_parsed_bucket(struct fastbuf *out, struct obuck_header *h, struct fastbuf * bprintf(out, "Cannot parse bucket %x of type %x and length %d: %m\n", h->oid, h->type, h->length); else { - if (h->type < BUCKET_TYPE_V30) - { - for (struct oattr *oa = o->attrs; oa; oa = oa->next) - dump_oattr(out, oa); - } - else - { #define IS_HEADER(x) (x=='O' || x=='U') - for (struct oattr *oa = o->attrs; oa; oa = oa->next) - if (IS_HEADER(oa->attr)) - dump_oattr(out, oa); - bputc(out, '\n'); - for (struct oattr *oa = o->attrs; oa; oa = oa->next) - if (!IS_HEADER(oa->attr)) - dump_oattr(out, oa); - } + for (struct oattr *oa = o->attrs; oa; oa = oa->next) + if (IS_HEADER(oa->attr)) + dump_oattr(out, oa); + bputc(out, '\n'); + for (struct oattr *oa = o->attrs; oa; oa = oa->next) + if (!IS_HEADER(oa->attr)) + dump_oattr(out, oa); } } -- 2.39.2