darwin: fix deprecation warning about kIOMasterPortDefault
authorNathan Hjelm <hjelmn@me.com>
Thu, 28 Oct 2021 16:36:30 +0000 (10:36 -0600)
committerNathan Hjelm <hjelmn@me.com>
Thu, 28 Oct 2021 16:36:30 +0000 (10:36 -0600)
commit8d7616886e062f58d0de12db2acd5d81e06240bb
tree663a750f84249f437ee80069a77b91ad8334af24
parent4f6754f3c6529a78a22cb6bdc9274671a911c64c
darwin: fix deprecation warning about kIOMasterPortDefault

The kIOMasterPortDefault constant has been replaced by kIOMainPortDefault. Both
are synonmys for 0. To avoid extra checks on the target macOS release just go
ahead and use 0.

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/os/darwin_usb.c
libusb/version_nano.h