From 0ea6b769d96189da1cda0ae462d7eb306e78d00e Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 13 Jul 1999 22:08:55 +0000 Subject: [PATCH] Remove static prototypes. CVS patchset: 3146 CVS date: 1999/07/13 22:08:55 --- lib/fprint.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/lib/fprint.c b/lib/fprint.c index 4bf9e2b..b9d4c32 100644 --- a/lib/fprint.c +++ b/lib/fprint.c @@ -12,22 +12,17 @@ struct lookupCache { ino_t ino; }; -static fingerPrint doLookup(const char * fullName, int scareMemory, - struct lookupCache * cache); - -static int strCompare(const void * a, const void * b) { +static int strCompare(const void * a, const void * b) +{ const char * const * one = a; const char * const * two = a; return strcmp(*one, *two); } -fingerPrint fpLookup(const char * fullName, int scareMemory) { - return doLookup(fullName, scareMemory, NULL); -} - static fingerPrint doLookup(const char * fullName, int scareMemory, - struct lookupCache * cache) { + struct lookupCache * cache) +{ char dir[PATH_MAX]; const char * chptr1; char * end, * bn; @@ -130,7 +125,8 @@ static fingerPrint doLookup(const char * fullName, int scareMemory, return fp; } -unsigned int fpHashFunction(const void * key) { +unsigned int fpHashFunction(const void * key) +{ const fingerPrint * fp = key; unsigned int hash = 0; char ch; @@ -147,12 +143,19 @@ unsigned int fpHashFunction(const void * key) { return hash; } -int fpEqual(const void * key1, const void * key2) { +int fpEqual(const void * key1, const void * key2) +{ return FP_EQUAL(*((const fingerPrint *) key1), *((fingerPrint *) key2)); } +fingerPrint fpLookup(const char * fullName, int scareMemory) +{ + return doLookup(fullName, scareMemory, NULL); +} + void fpLookupList(const char ** fullNames, fingerPrint * fpList, int numItems, - int alreadySorted) { + int alreadySorted) +{ int i, j; struct lookupCache cache; int maxLen = 0; -- 2.7.4