From: Toby Peterson Date: Sun, 23 Aug 2009 04:19:59 +0000 (+0545) Subject: Darwin: 64-bit type fixes X-Git-Tag: upstream/1.0.21~970 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b489b8b2a5aba7b8b804e5af6d2628735548238;p=platform%2Fupstream%2Flibusb.git Darwin: 64-bit type fixes --- 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 */