Minor cleanup to rpmdbFindByFile()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 08:57:14 +0000 (11:57 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 8 Jun 2011 08:59:08 +0000 (11:59 +0300)
commit014063bf3cc2b268292b50dfffc004683ae840fc
treee10157d5fce04dc2013856fb3e40efaa5147f5bf
parentb09781f4b9f359b9e48dc816b22cf9c4f8e5681a
Minor cleanup to rpmdbFindByFile()
- Pass the dbi we already opened in rpmdbInitIterator() as argument
  instead of unnecessarily reopening in rpmdbFindByFile()
- Adjust the argument order to match that of dbiFindByLabel()
  for consistency
- Remove redundant error code assignment, we are already assuming error
lib/rpmdb.c