Remove unnecessary HEADER_FOOTAG definitions
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Jan 2009 08:39:15 +0000 (10:39 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 5 Jan 2009 08:39:15 +0000 (10:39 +0200)
- header.c can include rpmtag.h these days

lib/header.c
lib/header_internal.h

index 7ff05bf..afb9141 100644 (file)
@@ -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. */
index cd34392..6db9c33 100644 (file)
 
 #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.
  */