chiark / gitweb /
Make the code base clean under -Wwrite-strings.
[sgt-puzzles.git] / osx.m
diff --git a/osx.m b/osx.m
index 9403faedc9399501f2f074ede58db110282a0236..daa4af1f094c8d6efe18716e35742c05b532a2e1 100644 (file)
--- a/osx.m
+++ b/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);