Rename doLookup to fpLookup to get rid of one function just calling the other
authorFlorian Festi <ffesti@redhat.com>
Wed, 5 Nov 2008 14:23:19 +0000 (15:23 +0100)
committerFlorian Festi <ffesti@redhat.com>
Fri, 7 Nov 2008 10:03:16 +0000 (11:03 +0100)
lib/fprint.c

index 5e8dce6..4b24c21 100644 (file)
@@ -67,7 +67,7 @@ static const struct fprintCacheEntry_s * cacheContainsDirectory(
  * @return pointer to the finger print associated with a file path.
  */
 /* LCL: segfault */
-static fingerPrint doLookup(fingerPrintCache cache,
+fingerPrint fpLookup(fingerPrintCache cache,
                const char * dirName, const char * baseName, int scareMemory)
 {
     char dir[PATH_MAX];
@@ -188,12 +188,6 @@ exit:
     return fp;
 }
 
-fingerPrint fpLookup(fingerPrintCache cache, const char * dirName, 
-                       const char * baseName, int scareMemory)
-{
-    return doLookup(cache, dirName, baseName, scareMemory);
-}
-
 unsigned int fpHashFunction(const fingerPrint * fp)
 {
     unsigned int hash = 0;
@@ -236,7 +230,7 @@ void fpLookupList(fingerPrintCache cache, const char ** dirNames,
            fpList[i].subDir = fpList[i - 1].subDir;
            fpList[i].baseName = baseNames[i];
        } else {
-           fpList[i] = doLookup(cache, dirNames[dirIndexes[i]], baseNames[i],
+           fpList[i] = fpLookup(cache, dirNames[dirIndexes[i]], baseNames[i],
                                 1);
        }
     }
@@ -306,7 +300,7 @@ void fpLookupSubdir(rpmFpHash ht, rpmFpHash newht, fingerPrintCache fpc, rpmfi f
                        rstrscat(&link, endbasename+1, "/", NULL);
                   }
 
-                  *fp = doLookup(fpc, link, fp->baseName, 0);
+                  *fp = fpLookup(fpc, link, fp->baseName, 0);
 
                   free(link);
                   free(currentsubdir);