diff options
author | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-03-30 14:13:24 +0000 |
---|---|---|
committer | Per Øyvind Karlsen <peroyvind@mandriva.org> | 2011-03-30 14:13:24 +0000 |
commit | 0d99501d636ab42d067e8bb83d0ae8b95901ccf8 (patch) | |
tree | 648aae5f44e0f7019a5647d16fbcad2ff2ebb6ef | |
parent | 991149031830cc91a3967a128b8698002ac95cac (diff) | |
download | perl-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.xs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |