mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-20 07:58:39 +02:00
Platform: Darwin: Replace deprecate kIOMasterPortDefault with kIOMainPortDefault
This commit is contained in:
@@ -86,7 +86,7 @@ void CDCACM::Find(std::vector<FoundDevice>& found) {
|
|||||||
if(ref == nullptr)
|
if(ref == nullptr)
|
||||||
return;
|
return;
|
||||||
io_iterator_t matchingServices = 0;
|
io_iterator_t matchingServices = 0;
|
||||||
kern_return_t kernResult = IOServiceGetMatchingServices(kIOMasterPortDefault, ref, &matchingServices);
|
kern_return_t kernResult = IOServiceGetMatchingServices(kIOMainPortDefault, ref, &matchingServices);
|
||||||
if(KERN_SUCCESS != kernResult || matchingServices == 0)
|
if(KERN_SUCCESS != kernResult || matchingServices == 0)
|
||||||
return;
|
return;
|
||||||
IOReleaser matchingServicesReleaser(matchingServices);
|
IOReleaser matchingServicesReleaser(matchingServices);
|
||||||
|
|||||||
Reference in New Issue
Block a user