From 3de166775cac39a3fc34f225ef4859517040b328 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 5 Jan 2009 10:39:15 +0200 Subject: [PATCH] Remove unnecessary HEADER_FOOTAG definitions - header.c can include rpmtag.h these days --- lib/header.c | 4 ++-- lib/header_internal.h | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/header.c b/lib/header.c index 7ff05bf..afb9141 100644 --- a/lib/header.c +++ b/lib/header.c @@ -950,8 +950,8 @@ Header headerLoad(void * uh) h->indexUsed -= ne; for (j = 0; j < ne; j++, newEntry++) { (void) headerDel(h, newEntry->info.tag); - if (newEntry->info.tag == HEADER_BASENAMES) - (void) headerDel(h, HEADER_OLDFILENAMES); + if (newEntry->info.tag == RPMTAG_BASENAMES) + (void) headerDel(h, RPMTAG_OLDFILENAMES); } /* If any duplicate entries were replaced, move new entries down. */ diff --git a/lib/header_internal.h b/lib/header_internal.h index cd34392..6db9c33 100644 --- a/lib/header_internal.h +++ b/lib/header_internal.h @@ -11,12 +11,6 @@ #define INDEX_MALLOC_SIZE 8 -/* - * Teach header.c about legacy tags. - */ -#define HEADER_OLDFILENAMES 1027 -#define HEADER_BASENAMES 1117 - /** \ingroup header * Description of tag data. */ -- 2.7.4