chiark / gitweb /
Make the code base clean under -Wwrite-strings.
[sgt-puzzles.git] / grid.h
diff --git a/grid.h b/grid.h
index fb8ac48790ac34b16e41d13e325875bad8513ac4..19079a44b8cf90666df6d9b8b0e9e19e8c670363 100644 (file)
--- a/grid.h
+++ b/grid.h
@@ -116,8 +116,8 @@ typedef enum grid_type { GRIDGEN_LIST(ENUM) GRID_TYPE_MAX } grid_type;
 /* Free directly after use if non-NULL. Will never contain an underscore
  * (so clients can safely use that as a separator). */
 char *grid_new_desc(grid_type type, int width, int height, random_state *rs);
-char *grid_validate_desc(grid_type type, int width, int height,
-                         const char *desc);
+const char *grid_validate_desc(grid_type type, int width, int height,
+                               const char *desc);
 
 grid *grid_new(grid_type type, int width, int height, const char *desc);