ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/sys_darwin.cpp
(Generate patch)

Comparing BasiliskII/src/MacOSX/sys_darwin.cpp (file contents):
Revision 1.13 by gbeauche, 2008-01-01T09:40:32Z vs.
Revision 1.14 by nigel, 2008-02-04T01:02:58Z

# Line 115 | Line 115 | static kern_return_t get_device_path(io_
115   static void media_arrived(int type, io_iterator_t iterator)
116   {
117          io_object_t obj;
118 <        while ((obj = IOIteratorNext(iterator)) != NULL) {
118 >        while ((obj = IOIteratorNext(iterator))) {
119                  char path[MAXPATHLEN];
120                  kern_return_t kernResult = get_device_path(obj, path, sizeof(path));
121                  if (kernResult == KERN_SUCCESS) {
# Line 137 | Line 137 | static void media_arrived(int type, io_i
137   static void media_removed(int type, io_iterator_t iterator)
138   {
139          io_object_t obj;
140 <        while ((obj = IOIteratorNext(iterator)) != NULL) {
140 >        while ((obj = IOIteratorNext(iterator))) {
141                  char path[MAXPATHLEN];
142                  kern_return_t kernResult = get_device_path(obj, path, sizeof(path));
143                  if (kernResult == KERN_SUCCESS) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines