chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add 'const' to the game_params arguments in validate_desc and
[sgt-puzzles.git]
/
netslide.c
diff --git
a/netslide.c
b/netslide.c
index 8d18652bb48f278de647574027764cc9f4c4b77b..e3fc90179b9f59d364ad082d76d15c1cf3a01e14 100644
(file)
--- a/
netslide.c
+++ b/
netslide.c
@@
-324,7
+324,7
@@
static char *validate_params(game_params *params, int full)
* Randomly select a new game description.
*/
* Randomly select a new game description.
*/
-static char *new_game_desc(game_params *params, random_state *rs,
+static char *new_game_desc(
const
game_params *params, random_state *rs,
char **aux, int interactive)
{
tree234 *possibilities, *barriertree;
char **aux, int interactive)
{
tree234 *possibilities, *barriertree;
@@
-696,7
+696,7
@@
static char *new_game_desc(game_params *params, random_state *rs,
return desc;
}
return desc;
}
-static char *validate_desc(game_params *params, char *desc)
+static char *validate_desc(
const
game_params *params, char *desc)
{
int w = params->width, h = params->height;
int i;
{
int w = params->width, h = params->height;
int i;