removed returning value when removing entry from setup file hash
authorHolger Schemel <info@artsoft.org>
Wed, 21 Feb 2024 23:16:25 +0000 (00:16 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 21 Feb 2024 23:16:25 +0000 (00:16 +0100)
src/libgame/setup.c
src/libgame/setup.h

index e34ed89adcf198497e92c2f8ca948982f1f793c0..25ad716ba0785bdca0d87afba3ef817ce610f4cb 100644 (file)
@@ -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
index c7c65cdf7a2706e00c21c0f82c68981c4780aa15..4e23cdeea885e74b92d2e9ebb673e7c684d694ae 100644 (file)
@@ -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 *);