--- BasiliskII/src/MacOSX/sys_darwin.cpp 2007/01/22 14:58:33 1.12 +++ BasiliskII/src/MacOSX/sys_darwin.cpp 2008/02/04 01:02:58 1.14 @@ -1,5 +1,5 @@ /* - * $Id: sys_darwin.cpp,v 1.12 2007/01/22 14:58:33 asvitkine Exp $ + * $Id: sys_darwin.cpp,v 1.14 2008/02/04 01:02:58 nigel Exp $ * * sys_darwin.cpp - Extra Darwin system dependant routines. Called by: * @@ -7,7 +7,7 @@ * * Based on Apple's CDROMSample.c and Evan Jones' cd-discid.c patches * - * Basilisk II (C) 1997-2005 Christian Bauer + * Basilisk II (C) 1997-2008 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -115,7 +115,7 @@ static kern_return_t get_device_path(io_ static void media_arrived(int type, io_iterator_t iterator) { io_object_t obj; - while ((obj = IOIteratorNext(iterator)) != NULL) { + while ((obj = IOIteratorNext(iterator))) { char path[MAXPATHLEN]; kern_return_t kernResult = get_device_path(obj, path, sizeof(path)); if (kernResult == KERN_SUCCESS) { @@ -137,7 +137,7 @@ static void media_arrived(int type, io_i static void media_removed(int type, io_iterator_t iterator) { io_object_t obj; - while ((obj = IOIteratorNext(iterator)) != NULL) { + while ((obj = IOIteratorNext(iterator))) { char path[MAXPATHLEN]; kern_return_t kernResult = get_device_path(obj, path, sizeof(path)); if (kernResult == KERN_SUCCESS) {