Skip to content

Commit

Permalink
Fixed unix.c to compile again on MacOS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 13, 2005
1 parent bdb7f54 commit 9f98009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Expand Up @@ -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!)
Expand Down
4 changes: 1 addition & 3 deletions platform/unix.c
Expand Up @@ -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++)
Expand Down

0 comments on commit 9f98009

Please sign in to comment.