From 84ee0a10ea3e9409c10ead76465d19e8d3f4c7ce Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 4 Mar 2011 12:45:06 +0200 Subject: [PATCH] Remove unused xx error code variable - headerDel() only fails if the tag doesn't exist in the header, which is not an error here. Nor could we return an error if it was... --- lib/legacy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/legacy.c b/lib/legacy.c index df7911e..422c2b0 100644 --- a/lib/legacy.c +++ b/lib/legacy.c @@ -26,7 +26,7 @@ static void compressFilelist(Header h) const char ** baseNames; uint32_t * dirIndexes; rpm_count_t count; - int xx, i; + int i; int dirIndex = -1; /* @@ -36,7 +36,7 @@ static void compressFilelist(Header h) */ if (headerIsEntry(h, RPMTAG_DIRNAMES)) { - xx = headerDel(h, RPMTAG_OLDFILENAMES); + headerDel(h, RPMTAG_OLDFILENAMES); return; /* Already converted. */ } @@ -112,7 +112,7 @@ exit: free(baseNames); free(dirIndexes); - xx = headerDel(h, RPMTAG_OLDFILENAMES); + headerDel(h, RPMTAG_OLDFILENAMES); } static void expandFilelist(Header h) -- 2.7.4