- might as well ditch the function too I guess...
return table; /* LCL: double indirection? */
}
-/* FIX: shrug */
-void headerDump(Header h, FILE *f, int flags,
- const struct headerTagTableEntry_s * tags)
+void headerDump(Header h, FILE *f, int flags)
{
int i;
indexEntry p;
- const struct headerTagTableEntry_s * tage;
const char * tag;
const char * type;
break;
}
- tage = tags;
- while (tage->name && tage->val != p->info.tag) tage++;
-
- if (!tage->name)
- tag = "(unknown)";
- else
- tag = tage->name;
+ tag = rpmTagGetName(p->info.tag);
fprintf(f, "Entry : %3.3d (%d)%-14s %-18s 0x%.8x %.8d\n", i,
p->info.tag, tag, type, (unsigned) p->info.offset,
* @param h header
* @param f file handle
* @param flags 0 or HEADER_DUMP_INLINE
- * @param tags array of tag name/value pairs
*/
-void headerDump(Header h, FILE *f, int flags,
- const struct headerTagTableEntry_s * tags);
+void headerDump(Header h, FILE *f, int flags);
#define HEADER_DUMP_INLINE 1
#ifdef __cplusplus
if (!(dspBlockNum != 0 && dspBlockNum != blockNum))
continue;
- headerDump(h, stdout, HEADER_DUMP_INLINE, rpmTagTable);
+ headerDump(h, stdout, HEADER_DUMP_INLINE);
fprintf(stdout, "Offset: %d\n", _RECNUM);
if (dspBlockNum && blockNum > dspBlockNum)