platform/unix.c
changeset 133 293f14af15c8
parent 132 b53fa5093749
child 137 66bddb94b6e0
--- a/platform/unix.c	Sun Mar 24 19:47:33 2002 +0000
+++ b/platform/unix.c	Mon Mar 25 04:02:27 2002 +0000
@@ -588,11 +588,11 @@
 } /* __PHYSFS_platformRead */
 
 
-PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, void *buffer,
+PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
                                      PHYSFS_uint32 size, PHYSFS_uint32 count)
 {
     FILE *io = (FILE *) opaque;
-    int rc = fwrite(buffer, size, count, io);
+    int rc = fwrite((void *) buffer, size, count, io);
     if (rc < count)
         __PHYSFS_setError(strerror(errno));