From: Holger Schemel Date: Wed, 21 Feb 2024 23:16:25 +0000 (+0100) Subject: removed returning value when removing entry from setup file hash X-Git-Tag: 4.4.0.0-test-1~321 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f8be140d8d76ac9240db2d75ac93d800fd4d7878;p=rocksndiamonds.git removed returning value when removing entry from setup file hash --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index e34ed89a..25ad716b 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -2370,12 +2370,12 @@ void setHashEntry(SetupFileHash *hash, char *token, char *value) Fail("cannot insert into hash -- aborting"); } -char *removeHashEntry(SetupFileHash *hash, char *token) +void removeHashEntry(SetupFileHash *hash, char *token) { if (hash == NULL) - return NULL; + return; - return remove_hash_entry(hash, token); + remove_hash_entry(hash, token); } #if ENABLE_UNUSED_CODE diff --git a/src/libgame/setup.h b/src/libgame/setup.h index c7c65cdf..4e23cdee 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -365,7 +365,7 @@ SetupFileHash *newSetupFileHash(void); void freeSetupFileHash(SetupFileHash *); char *getHashEntry(SetupFileHash *, char *); void setHashEntry(SetupFileHash *, char *, char *); -char *removeHashEntry(SetupFileHash *, char *); +void removeHashEntry(SetupFileHash *, char *); SetupFileHash *loadSetupFileHash(char *); void setSetupInfo(struct TokenInfo *, int, char *); char *getSetupValue(int, void *);