@@ -235,7 +235,7 @@ static int usb_setup_device_iterator (io_iterator_t *deviceIterator, UInt32 loca
235
235
/* else we can still proceed as long as the caller accounts for the possibility of other devices in the iterator */
236
236
}
237
237
238
- return IOServiceGetMatchingServices (kIOMasterPortDefault , matchingDict , deviceIterator );
238
+ return IOServiceGetMatchingServices (MACH_PORT_NULL , matchingDict , deviceIterator );
239
239
}
240
240
241
241
/* Returns 1 on success, 0 on failure. */
@@ -370,7 +370,7 @@ static void darwin_hotplug_poll (void)
370
370
/* since a kernel thread may nodify the IOInterators used for
371
371
* hotplug notidication we can't just clear the iterators.
372
372
* instead just wait until all IOService providers are quiet */
373
- (void ) IOKitWaitQuiet (kIOMasterPortDefault , & timeout );
373
+ (void ) IOKitWaitQuiet (MACH_PORT_NULL , & timeout );
374
374
}
375
375
376
376
static void darwin_clear_iterator (io_iterator_t iter ) {
@@ -421,7 +421,7 @@ static void *darwin_event_thread_main (void *arg0) {
421
421
CFRunLoopAddSource (runloop , libusb_darwin_acfls , kCFRunLoopDefaultMode );
422
422
423
423
/* add the notification port to the run loop */
424
- libusb_notification_port = IONotificationPortCreate (kIOMasterPortDefault );
424
+ libusb_notification_port = IONotificationPortCreate (MACH_PORT_NULL );
425
425
libusb_notification_cfsource = IONotificationPortGetRunLoopSource (libusb_notification_port );
426
426
CFRunLoopAddSource (runloop , libusb_notification_cfsource , kCFRunLoopDefaultMode );
427
427
@@ -695,7 +695,7 @@ static int darwin_check_configuration (struct libusb_context *ctx, struct darwin
695
695
} else
696
696
/* not configured */
697
697
dev -> active_config = 0 ;
698
-
698
+
699
699
usbi_dbg ("active config: %u, first config: %u" , dev -> active_config , dev -> first_config );
700
700
701
701
return 0 ;
0 commit comments