From: Holger Schemel Date: Wed, 5 Jan 2022 17:04:14 +0000 (+0100) Subject: changed function name X-Git-Tag: 4.3.0.3~5 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7354588d631a24c4aceebb28b7cf4fb9e1d5bab9;p=rocksndiamonds.git changed function name --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 9ea17549..d81cb8b5 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -2075,7 +2075,7 @@ unsigned int get_hash_from_key(void *key) return hash; } -static int keys_are_equal(void *key1, void *key2) +int hash_keys_are_equal(void *key1, void *key2) { return (strEqual((char *)key1, (char *)key2)); } @@ -2083,7 +2083,7 @@ static int keys_are_equal(void *key1, void *key2) SetupFileHash *newSetupFileHash(void) { SetupFileHash *new_hash = - create_hashtable(16, 0.75, get_hash_from_key, keys_are_equal); + create_hashtable(16, 0.75, get_hash_from_key, hash_keys_are_equal); if (new_hash == NULL) Fail("create_hashtable() failed -- out of memory"); diff --git a/src/libgame/setup.h b/src/libgame/setup.h index ab52a7a8..4a779440 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -365,6 +365,7 @@ char *getSetupValue(int, void *); char *getSetupLine(struct TokenInfo *, char *, int); unsigned int get_hash_from_key(void *); +int hash_keys_are_equal(void *, void *); int GetZipFileTreeType(char *); char *ExtractZipFileIntoDirectory(char *, char *, int);