summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau@free.fr>2016-02-27 17:42:55 +0100
committerLudovic Rousseau <ludovic.rousseau@free.fr>2016-03-02 16:04:30 +0100
commit4bfa440e5f5339bfaaf5baae763d45b77b64294b (patch)
tree53fed22662da813ff6044b9ed94bb92aff5892b7
parent680828abf88096d802f8ab4e0e603ae7bc05af7f (diff)
downloadlibusb-4bfa440e5f5339bfaaf5baae763d45b77b64294b.tar.gz
darwin: fix 1 compiler warning
os/darwin_usb.c:248:18: warning: comparison of integers of different signs: 'CFIndex' (aka 'long') and 'size_t' (aka 'unsigned long') [-Wsign-compare] if (length < size) { ~~~~~~ ^ ~~~~ Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
-rw-r--r--libusb/os/darwin_usb.c2
-rw-r--r--libusb/version_nano.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index a19f04a..9284866 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -238,7 +238,7 @@ static int get_ioregistry_value_number (io_service_t service, CFStringRef proper
return ret;
}
-static int get_ioregistry_value_data (io_service_t service, CFStringRef property, size_t size, void *p) {
+static int get_ioregistry_value_data (io_service_t service, CFStringRef property, ssize_t size, void *p) {
CFTypeRef cfData = IORegistryEntryCreateCFProperty (service, property, kCFAllocatorDefault, 0);
int ret = 0;
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 2847bad..4cd53ff 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11083
+#define LIBUSB_NANO 11084