summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2016-11-28 13:10:51 +0200
committerPanu Matilainen <pmatilai@redhat.com>2016-11-28 13:10:51 +0200
commit6743ffb312461bd5a1021beef52534e63582d5cf (patch)
tree5527658c326cb7c4219724e2782394fa11e312f7
parent9d8e06a74154b2283c5374fad25ae41aa7879cb0 (diff)
downloadrpm-6743ffb312461bd5a1021beef52534e63582d5cf.tar.gz
Clarify comments on header legacy regions
-rw-r--r--lib/header.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/header.c b/lib/header.c
index 001a45159..c0b4601bc 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -354,7 +354,7 @@ unsigned headerSizeof(Header h, int magicp)
/* Regions go in as is ... */
if (ENTRY_IS_REGION(entry)) {
size += entry->length;
- /* XXX Legacy regions do not include the region tag and data. */
+ /* Reserve space for legacy region tag + data */
if (i == 0 && (h->flags & HEADERFLAG_LEGACY))
size += sizeof(struct entryInfo_s) + entry->info.count;
continue;
@@ -576,7 +576,7 @@ void * headerExport(Header h, unsigned int *bsize)
il += ril;
dl += entry->rdlen + entry->info.count;
- /* XXX Legacy regions do not include the region tag and data. */
+ /* Reserve space for legacy region tag */
if (i == 0 && (h->flags & HEADERFLAG_LEGACY))
il += 1;
@@ -649,7 +649,7 @@ void * headerExport(Header h, unsigned int *bsize)
src = (char *)entry->data;
rdlen = entry->rdlen;
- /* XXX Legacy regions do not include the region tag and data. */
+ /* Legacy headers don't have regions originally, create one */
if (i == 0 && (h->flags & HEADERFLAG_LEGACY)) {
int32_t stei[4];