shithub: puzzles

Download patch

ref: a46bbae7c16595e6f5eb02add637da337a1f075a
parent: b780b073da9a038347066d4ba65d9c28cc9eedce
author: Ben Harris <bjh21@bjh21.me.uk>
date: Thu Dec 15 19:28:09 EST 2022

guess: Remove an obsolete workaround

dup_params() has taken a const argument for some time.

--- a/guess.c
+++ b/guess.c
@@ -88,13 +88,7 @@
         return false;
 
     *name = dupstr(guess_presets[i].name);
-    /*
-     * get round annoying const issues
-     */
-    {
-        game_params tmp = guess_presets[i].params;
-        *params = dup_params(&tmp);
-    }
+    *params = dup_params(&guess_presets[i].params);
 
     return true;
 }