diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-03-04 16:00:29 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-03-04 16:00:29 +0200 |
commit | 586a30c77a365f05c81f1b4a0558e9ca58196010 (patch) | |
tree | 08832b1b85359efff0fb45d9987737d4f2eb8313 /lib/psm.c | |
parent | 695342bb19fc805803cf6f4bffdd56c43c299e7e (diff) | |
download | librpm-tizen-586a30c77a365f05c81f1b4a0558e9ca58196010.tar.gz librpm-tizen-586a30c77a365f05c81f1b4a0558e9ca58196010.tar.bz2 librpm-tizen-586a30c77a365f05c81f1b4a0558e9ca58196010.zip |
Remove unused return code variable
- The return codes from these iteratator functions aren't interesting
in this context, don't bother saving them either.
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -132,7 +132,7 @@ static rpmRC markReplacedFiles(const rpmpsm psm) Header h; int * offsets; unsigned int prev; - int num, xx; + int num; if (!replaced) return RPMRC_OK; @@ -158,8 +158,8 @@ static rpmRC markReplacedFiles(const rpmpsm psm) } mi = rpmtsInitIterator(ts, RPMDBI_PACKAGES, NULL, 0); - xx = rpmdbAppendIterator(mi, offsets, num); - xx = rpmdbSetIteratorRewrite(mi, 1); + rpmdbAppendIterator(mi, offsets, num); + rpmdbSetIteratorRewrite(mi, 1); sfi = replaced; while ((h = rpmdbNextIterator(mi)) != NULL) { @@ -182,7 +182,7 @@ static rpmRC markReplacedFiles(const rpmpsm psm) if (modified == 0) { /* Modified header will be rewritten. */ modified = 1; - xx = rpmdbSetIteratorModified(mi, modified); + rpmdbSetIteratorModified(mi, modified); } num++; } |