1diff -Naur libusb-0.1.13b/darwin.c libusb-0.1.13b-p/darwin.c
2--- darwin.c	2008-07-23 11:41:33.000000000 -0700
3+++ darwin.c	2010-08-18 14:48:47.000000000 -0700
4@@ -254,7 +254,7 @@
5   io_cf_plugin_ref_t *plugInInterface = NULL;
6   usb_device_t **device;
7   io_service_t usbDevice;
8-  long result, score;
9+  long result; int32_t score;
10 
11   if (!IOIteratorIsValid (deviceIterator) || !(usbDevice = IOIteratorNext(deviceIterator)))
12     return NULL;
13@@ -454,7 +454,7 @@
14   IOUSBFindInterfaceRequest request;
15 
16   struct darwin_dev_handle *device;
17-  long score;
18+  SInt32 score;
19   int current_interface;
20 
21   device = dev->impl_info;
22@@ -1133,8 +1133,8 @@
23 	struct usb_device *dev;
24 
25 	if (usb_debug >= 2)
26-	  fprintf(stderr, "libusb/darwin.c usb_os_find_devices: Found USB device on bus 0x%08lx: 0x%08lx\n",
27-		  bus_loc, location);
28+	  fprintf(stderr, "libusb/darwin.c usb_os_find_devices: Found USB device on bus 0x%08x: 0x%08x\n",
29+		  (uint32_t)bus_loc, (uint32_t)location);
30 
31 	dev = calloc(1, sizeof(struct usb_device));
32 	if (dev == NULL)
33@@ -1185,8 +1185,8 @@
34 	LIST_ADD(fdev, dev);
35 
36 	if (usb_debug >= 2)
37-	  fprintf(stderr, "libusb/darwin.c usb_os_find_devices: Found %s on %s at location 0x%08lx\n",
38-		  dev->filename, bus->dirname, location);
39+	  fprintf(stderr, "libusb/darwin.c usb_os_find_devices: Found %s on %s at location 0x%08x\n",
40+		  dev->filename, bus->dirname, (uint32_t)location);
41       }
42     } else if (usb_debug)
43       fprintf (stderr, "libusb/darwin.c usb_os_find_devices: Could not retrieve device address: %s\n",
44
45