platform/unix.c
changeset 678 73a2641375a0
parent 677 c8e2615d6173
child 691 71d9affe0d8a
--- a/platform/unix.c	Sun Mar 13 03:18:18 2005 +0000
+++ b/platform/unix.c	Sun Mar 13 03:33:11 2005 +0000
@@ -219,11 +219,7 @@
     struct mntent *ent = NULL;
 
     mounts = setmntent("/etc/mtab", "r");
-    if (mounts == NULL)
-    {
-        __PHYSFS_setError(ERR_IO_ERROR);
-        return;
-    } /* if */
+    BAIL_IF_MACRO(mounts == NULL, ERR_IO_ERROR, /*return void*/);
 
     while ( (ent = getmntent(mounts)) != NULL )
     {