chiark / gitweb /
Make the code base clean under -Wwrite-strings.
[sgt-puzzles.git] / twiddle.c
index fb8f70062799b0eb38e599d8dd6220f706cf3b33..1f2825f2d82e6187b1f39a00fa2811aaf7dc5fab 100644 (file)
--- a/twiddle.c
+++ b/twiddle.c
@@ -80,9 +80,9 @@ static game_params *dup_params(const game_params *params)
 static int game_fetch_preset(int i, char **name, game_params **params)
 {
     static struct {
-        char *title;
+        const char *title;
         game_params params;
-    } presets[] = {
+    } const presets[] = {
         { "3x3 rows only", { 3, 3, 2, TRUE, FALSE } },
         { "3x3 normal", { 3, 3, 2, FALSE, FALSE } },
         { "3x3 orientable", { 3, 3, 2, FALSE, TRUE } },