Fixed unix.c to compile again on MacOS X.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 13 Mar 2005 03:18:18 +0000
changeset 677 c8e2615d6173
parent 676 be1460fff07f
child 678 73a2641375a0
Fixed unix.c to compile again on MacOS X.
CHANGELOG
platform/unix.c
--- a/CHANGELOG	Sun Mar 13 03:04:04 2005 +0000
+++ b/CHANGELOG	Sun Mar 13 03:18:18 2005 +0000
@@ -2,7 +2,8 @@
  * 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
 01052005 - Fixed HOG archiver file lookup (thanks, Chris!)
 12162004 - Fixed some documentation/header comment typos (thanks, Gaetan!)
--- a/platform/unix.c	Sun Mar 13 03:04:04 2005 +0000
+++ b/platform/unix.c	Sun Mar 13 03:18:18 2005 +0000
@@ -170,10 +170,8 @@
     struct statfs *mntbufp;
     int i, mounts;
 
-    retval[0] = NULL;
-
     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! */
     for (i = 0; i < mounts; i++)