Преглед на файлове

Fixed unix.c to compile again on MacOS X.

Ryan C. Gordon преди 21 години
родител
ревизия
9f9800928d
променени са 2 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 2 1
      CHANGELOG
  2. 1 3
      platform/unix.c

+ 2 - 1
CHANGELOG

@@ -2,7 +2,8 @@
  * CHANGELOG.
  * CHANGELOG.
  */
  */
 
 
-03122005 - Added evil GOTO_*_MACRO_* macros.
+03122005 - Added evil GOTO_*_MACRO_* macros. Fixed unix.c to compile again on
+           MacOS X.
 02152005 - Minor comment fix in platform/pocketpc.c
 02152005 - Minor comment fix in platform/pocketpc.c
 01052005 - Fixed HOG archiver file lookup (thanks, Chris!)
 01052005 - Fixed HOG archiver file lookup (thanks, Chris!)
 12162004 - Fixed some documentation/header comment typos (thanks, Gaetan!)
 12162004 - Fixed some documentation/header comment typos (thanks, Gaetan!)

+ 1 - 3
platform/unix.c

@@ -170,10 +170,8 @@ void __PHYSFS_platformDetectAvailableCDs(PHYSFS_StringCallback cb, void *data)
     struct statfs *mntbufp;
     struct statfs *mntbufp;
     int i, mounts;
     int i, mounts;
 
 
-    retval[0] = NULL;
-
     if (IOMasterPort(MACH_PORT_NULL, &masterPort) != KERN_SUCCESS)
     if (IOMasterPort(MACH_PORT_NULL, &masterPort) != KERN_SUCCESS)
-        return(retval);
+        BAIL_MACRO(ERR_OS_ERROR, /*return void*/);
 
 
     mounts = getmntinfo(&mntbufp, MNT_WAIT);  /* NOT THREAD SAFE! */
     mounts = getmntinfo(&mntbufp, MNT_WAIT);  /* NOT THREAD SAFE! */
     for (i = 0; i < mounts; i++)
     for (i = 0; i < mounts; i++)