Darwin: 64-bit type fixes
authorToby Peterson <toby@macports.org>
Sun, 23 Aug 2009 04:19:59 +0000 (10:04 +0545)
committerDaniel Drake <dsd@gentoo.org>
Sun, 23 Aug 2009 04:19:59 +0000 (10:04 +0545)
libusb/os/darwin_usb.c

index 8c1afec..2ced118 100644 (file)
@@ -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 */