summaryrefslogtreecommitdiff
path: root/lib/fprint.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-04-30 22:32:22 +0000
committerjbj <devnull@localhost>2001-04-30 22:32:22 +0000
commit0ecdbba93587408c670124e88d39451c681a77eb (patch)
tree0953710c0f014faf772aa6c1ab0fdc1933ffdd8c /lib/fprint.c
parenta57a13b1350ff1a094c202c90391f8676f487582 (diff)
downloadlibrpm-tizen-0ecdbba93587408c670124e88d39451c681a77eb.tar.gz
librpm-tizen-0ecdbba93587408c670124e88d39451c681a77eb.tar.bz2
librpm-tizen-0ecdbba93587408c670124e88d39451c681a77eb.zip
- yet more boring lclint annotations and fiddles.
CVS patchset: 4732 CVS date: 2001/04/30 22:32:22
Diffstat (limited to 'lib/fprint.c')
-rw-r--r--lib/fprint.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/lib/fprint.c b/lib/fprint.c
index 930af90b3..a5f5a1cb9 100644
--- a/lib/fprint.c
+++ b/lib/fprint.c
@@ -228,18 +228,19 @@ void fpLookupList(fingerPrintCache cache, const char ** dirNames,
void fpLookupHeader(fingerPrintCache cache, Header h, fingerPrint * fpList)
{
- int fileCount;
+ HGE_t hge = (HGE_t)headerGetEntryMinMemory;
+ HFD_t hfd = headerFreeData;
const char ** baseNames, ** dirNames;
+ int bnt, dnt;
int_32 * dirIndexes;
+ int fileCount;
- if (!headerGetEntryMinMemory(h, RPMTAG_BASENAMES, NULL,
- (const void **) &baseNames, &fileCount)) return;
+ if (!hge(h, RPMTAG_BASENAMES, &bnt, (void **) &baseNames, &fileCount))
+ return;
- headerGetEntryMinMemory(h, RPMTAG_DIRNAMES, NULL,
- (const void **) &dirNames, NULL);
- headerGetEntryMinMemory(h, RPMTAG_DIRINDEXES, NULL,
- (const void **) &dirIndexes, NULL);
+ (void) hge(h, RPMTAG_DIRNAMES, &dnt, (void **) &dirNames, NULL);
+ (void) hge(h, RPMTAG_DIRINDEXES, NULL, (void **) &dirIndexes, NULL);
fpLookupList(cache, dirNames, baseNames, dirIndexes, fileCount, fpList);
- free(dirNames);
- free(baseNames);
+ dirNames = hfd(dirNames, dnt);
+ baseNames = hfd(baseNames, bnt);
}