src/platform_posix.c
changeset 1118 2e09fc635fdd
parent 1117 968e1567f4f4
child 1125 bcff76dbd9fd
--- a/src/platform_posix.c	Sun Aug 29 01:55:30 2010 -0400
+++ b/src/platform_posix.c	Mon Aug 30 03:01:57 2010 -0400
@@ -393,12 +393,11 @@
 } /* __PHYSFS_platformFlush */
 
 
-int __PHYSFS_platformClose(void *opaque)
+void __PHYSFS_platformClose(void *opaque)
 {
-    int fd = *((int *) opaque);
-    BAIL_IF_MACRO(close(fd) == -1, strerror(errno), 0);
+    const int fd = *((int *) opaque);
+    (void) close(fd);  /* we don't check this. You should have used flush! */
     allocator.Free(opaque);
-    return 1;
 } /* __PHYSFS_platformClose */