mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Make the code base clean under -Wwrite-strings.
I've also added that warning option and -Werror to the build script, so that I'll find out if I break this property in future.
This commit is contained in:
2
osx.m
2
osx.m
@ -152,7 +152,7 @@ void get_random_seed(void **randseed, int *randseedsize)
|
||||
*randseedsize = sizeof(time_t);
|
||||
}
|
||||
|
||||
static void savefile_write(void *wctx, void *buf, int len)
|
||||
static void savefile_write(void *wctx, const void *buf, int len)
|
||||
{
|
||||
FILE *fp = (FILE *)wctx;
|
||||
fwrite(buf, 1, len, fp);
|
||||
|
Reference in New Issue
Block a user