diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-09 11:47:59 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-09 11:47:59 +0300 |
commit | 1bc60ab06ed761182c8c530c0e44bc46cf403f61 (patch) | |
tree | c0fb4f8b1cca81a65a0a4d84b1fab2f0f3b07e59 | |
parent | 43dfc9e8d01ad840a0420bcbf037244dfd300caa (diff) | |
download | rpm-1bc60ab06ed761182c8c530c0e44bc46cf403f61.tar.gz rpm-1bc60ab06ed761182c8c530c0e44bc46cf403f61.tar.bz2 rpm-1bc60ab06ed761182c8c530c0e44bc46cf403f61.zip |
Eliminate yet more unused calculations from header code...
-rw-r--r-- | lib/header.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/header.c b/lib/header.c index 0a08cdae4..d4d2138d7 100644 --- a/lib/header.c +++ b/lib/header.c @@ -455,13 +455,12 @@ static void * doHeaderUnload(Header h, rpmTagType type; int i; int drlen, ndribbles; - int driplen, ndrips; /* Sort entries by (offset,tag). */ headerUnsort(h); /* Compute (il,dl) for all tags, including those deleted in region. */ - drlen = ndribbles = driplen = ndrips = 0; + drlen = ndribbles = 0; for (i = 0, entry = h->index; i < h->indexUsed; i++, entry++) { if (ENTRY_IS_REGION(entry)) { int32_t rdl = -entry->info.offset; /* negative offset */ @@ -508,14 +507,11 @@ static void * doHeaderUnload(Header h, if (typeSizes[type] > 1) { unsigned diff = typeSizes[type] - (dl % typeSizes[type]); if (diff != typeSizes[type]) { - driplen += diff; dl += diff; } } - ndrips++; il++; - driplen += entry->length; dl += entry->length; } |