diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-03-04 13:46:06 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-03-04 13:46:06 +0200 |
commit | 3632294483dd1eb8f26ed390290cf39580bdffc7 (patch) | |
tree | 27624b768e5f3c9660774798eb5d009bada49fcb | |
parent | 9db2544707944d3a69c0f472bcf00be45edc33ee (diff) | |
download | librpm-tizen-3632294483dd1eb8f26ed390290cf39580bdffc7.tar.gz librpm-tizen-3632294483dd1eb8f26ed390290cf39580bdffc7.tar.bz2 librpm-tizen-3632294483dd1eb8f26ed390290cf39580bdffc7.zip |
Remove pointless return code from handleInstInstalledFiles()
- There are no errors to return here... so it might as well be void
-rw-r--r-- | lib/transaction.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/transaction.c b/lib/transaction.c index 628e4eacc..d16a7bd31 100644 --- a/lib/transaction.c +++ b/lib/transaction.c @@ -324,7 +324,7 @@ static uint64_t countFiles(rpmts ts) * @param reportConflicts */ /* XXX only ts->{probs,rpmdb} modified */ -static int handleInstInstalledFile(const rpmts ts, rpmte p, rpmfi fi, +static void handleInstInstalledFile(const rpmts ts, rpmte p, rpmfi fi, Header otherHeader, rpmfi otherFi, int beingRemoved) { @@ -333,7 +333,7 @@ static int handleInstInstalledFile(const rpmts ts, rpmte p, rpmfi fi, int isCfgFile = ((rpmfiFFlags(otherFi) | rpmfiFFlags(fi)) & RPMFILE_CONFIG); if (XFA_SKIPPING(rpmfsGetAction(fs, fx))) - return 0; + return; if (rpmfiCompare(otherFi, fi)) { rpm_color_t tscolor = rpmtsColor(ts); @@ -377,8 +377,6 @@ static int handleInstInstalledFile(const rpmts ts, rpmte p, rpmfi fi, rpmfsSetAction(fs, fx, action); } rpmfiSetFReplacedSize(fi, rpmfiFSize(otherFi)); - - return 0; } /** @@ -912,7 +910,6 @@ void checkInstalledFiles(rpmts ts, uint64_t fileCount, rpmFpHash ht, fingerPrint rpmfs fs; rpmfi otherFi=NULL; int j; - int xx; unsigned int fileNum; const char * oldDir; @@ -994,7 +991,7 @@ void checkInstalledFiles(rpmts ts, uint64_t fileCount, rpmFpHash ht, fingerPrint } rpmfiSetFX(fi, recs[j].fileno); rpmfiSetFX(otherFi, fileNum); - xx = handleInstInstalledFile(ts, p, fi, h, otherFi, beingRemoved); + handleInstInstalledFile(ts, p, fi, h, otherFi, beingRemoved); break; case TR_REMOVED: if (!beingRemoved) { |