Darwin: Sync type of num_iso_packets fields
authorLudovic Rousseau <ludovic.rousseau@gmail.com>
Tue, 8 May 2012 18:34:12 +0000 (20:34 +0200)
committerPete Batard <pete@akeo.ie>
Tue, 8 May 2012 21:58:11 +0000 (22:58 +0100)
* num_iso_packets was a "size_t" in "struct darwin_transfer_priv" and an
  "int" in "struct libusb_transfer".  The field is now an int in the two
  structures
* Fixes warning
  os/darwin_usb.c: In function ‘submit_iso_transfer’:
  os/darwin_usb.c:1334: warning: comparison between signed and unsigned

libusb/os/darwin_usb.h
libusb/version.h

index 8899297..1746989 100644 (file)
@@ -147,7 +147,7 @@ struct darwin_device_handle_priv {
 struct darwin_transfer_priv {
   /* Isoc */
   IOUSBIsocFrame *isoc_framelist;
-  size_t num_iso_packets;
+  int num_iso_packets;
 
   /* Control */
 #if !defined (LIBUSB_NO_TIMEOUT_DEVICE)
index 01ad7fc..e59dfcb 100644 (file)
@@ -9,7 +9,7 @@
 #define LIBUSB_MICRO 11
 #endif
 #ifndef LIBUSB_NANO
-#define LIBUSB_NANO 10497
+#define LIBUSB_NANO 10498
 #endif
 /* LIBUSB_RC is the release candidate suffix. Should normally be empty. */
 #ifndef LIBUSB_RC