diff options
author | Toby Peterson <toby@macports.org> | 2009-08-23 10:04:59 +0545 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2009-08-23 10:04:59 +0545 |
commit | 5b489b8b2a5aba7b8b804e5af6d2628735548238 (patch) | |
tree | 1fd6a2831747c72395ae7fc0329374db992bf65f | |
parent | ad8ae04d0b52009af0b1180e005f7554d2bbb26c (diff) | |
download | libusb-5b489b8b2a5aba7b8b804e5af6d2628735548238.tar.gz |
Darwin: 64-bit type fixes
-rw-r--r-- | libusb/os/darwin_usb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c index 8c1afec..2ced118 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -150,7 +150,8 @@ static usb_device_t **usb_get_next_device (io_iterator_t deviceIterator, UInt32 io_cf_plugin_ref_t *plugInInterface = NULL; usb_device_t **device; io_service_t usbDevice; - long result, score; + long result; + SInt32 score; if (!IOIteratorIsValid (deviceIterator) || !(usbDevice = IOIteratorNext(deviceIterator))) return NULL; @@ -770,7 +771,7 @@ static int darwin_claim_interface(struct libusb_device_handle *dev_handle, int i io_service_t usbInterface = IO_OBJECT_NULL; IOReturn kresult; IOCFPlugInInterface **plugInInterface = NULL; - long score; + SInt32 score; uint8_t new_config; /* current interface */ |