aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-30 14:13:24 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2011-03-30 14:13:24 +0000
commit0d99501d636ab42d067e8bb83d0ae8b95901ccf8 (patch)
tree648aae5f44e0f7019a5647d16fbcad2ff2ebb6ef
parent991149031830cc91a3967a128b8698002ac95cac (diff)
downloadperl-URPM-0d99501d636ab42d067e8bb83d0ae8b95901ccf8.tar
perl-URPM-0d99501d636ab42d067e8bb83d0ae8b95901ccf8.tar.gz
perl-URPM-0d99501d636ab42d067e8bb83d0ae8b95901ccf8.tar.bz2
perl-URPM-0d99501d636ab42d067e8bb83d0ae8b95901ccf8.tar.xz
perl-URPM-0d99501d636ab42d067e8bb83d0ae8b95901ccf8.zip
just reuse 'i' rather than declaring a new 'keyNo'
-rw-r--r--URPM.xs3
1 files changed, 1 insertions, 2 deletions
diff --git a/URPM.xs b/URPM.xs
index a379c6d..7c92fee 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1761,8 +1761,7 @@ rpmdb_convert(const char *prefix, int dbtype, int swap, int rebuild) {
* rpmdb...
*/
if (dbtype == 1){
- uint32_t keyNo = 0;
- key.data = &keyNo;
+ key.data = &i;
data.data = &nkeys;
key.size = data.size = sizeof(uint32_t);
xx = dbiNew->dbi_db->put(dbiNew->dbi_db, NULL, &key, &data, 0);