summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-03-04 16:00:29 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-03-04 16:00:29 +0200
commit586a30c77a365f05c81f1b4a0558e9ca58196010 (patch)
tree08832b1b85359efff0fb45d9987737d4f2eb8313 /lib/psm.c
parent695342bb19fc805803cf6f4bffdd56c43c299e7e (diff)
downloadlibrpm-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/psm.c b/lib/psm.c
index dabb5bd38..bccd4bd4b 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -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++;
}