From 9f9800928daeb4dc90e9578d0a5df409e5c6121e Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 13 Mar 2005 03:18:18 +0000 Subject: [PATCH] Fixed unix.c to compile again on MacOS X. --- CHANGELOG | 3 ++- platform/unix.c | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index ebc77ae3..f7662fd9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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!) diff --git a/platform/unix.c b/platform/unix.c index 89e74c7f..fdb3c126 100644 --- a/platform/unix.c +++ b/platform/unix.c @@ -170,10 +170,8 @@ void __PHYSFS_platformDetectAvailableCDs(PHYSFS_StringCallback cb, void *data) 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++)