Skip to content

Commit

Permalink
Update deprecated kIOMasterPortDefault in stand-alone tool
Browse files Browse the repository at this point in the history
  • Loading branch information
vosaica authored and slotThe committed Oct 25, 2023
1 parent f409a4b commit 3482067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_src/mac/list-keyboards.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int main() {
CFDictionarySetValue(matching_dictionary,CFSTR(kIOHIDDeviceUsageKey),cfValue);
CFRelease(cfValue);
io_iterator_t iter = IO_OBJECT_NULL;
kern_return_t r = IOServiceGetMatchingServices(kIOMasterPortDefault,
kern_return_t r = IOServiceGetMatchingServices(kIOMainPortDefault,
matching_dictionary,
&iter);
if(r != KERN_SUCCESS) {
Expand Down

0 comments on commit 3482067

Please sign in to comment.