}
int fpLookup(fingerPrintCache cache,
- const char * dirName, const char * baseName, int scareMemory,
+ const char * dirName, const char * baseName,
fingerPrint **fp)
{
if (*fp == NULL)
* @param cache pointer to fingerprint cache
* @param dirName leading directory name of file path
* @param baseName base name of file path
- * @param scareMemory
* @retval fp pointer of fingerprint struct to fill out
* @return 0 on success
*/
RPM_GNUC_INTERNAL
int fpLookup(fingerPrintCache cache,
- const char * dirName, const char * baseName, int scareMemory,
+ const char * dirName, const char * baseName,
fingerPrint **fp);
/**
/**
* Return finger prints of an array of file paths.
- * @warning: scareMemory is assumed!
* @param cache pointer to fingerprint cache
* @param pool pointer to file name pool
* @param dirNames directory names
*matches = xcalloc(1, sizeof(**matches));
fpc = fpCacheCreate(allMatches->count);
- fpLookup(fpc, dirName, baseName, 1, &fp1);
+ fpLookup(fpc, dirName, baseName, &fp1);
i = 0;
while (i < allMatches->count) {
dirName = rpmtdGetString(&dnames);
baseName = rpmtdGetString(&bnames);
- fpLookup(fpc, dirName, baseName, 1, &fpp);
+ fpLookup(fpc, dirName, baseName, &fpp);
fpIx = 0;
} else {
fpp = rpmfiFps(otherFi);