summaryrefslogtreecommitdiffstats
path: root/lib/libusb
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2010-10-14 20:18:39 +0000
committerhselasky <hselasky@FreeBSD.org>2010-10-14 20:18:39 +0000
commitd82c33e9e33482e03f46031fd3c98d3967ce094e (patch)
tree2392c95ac8a45e0f0346c99b9b61a613372370d0 /lib/libusb
parentf4157327e68c3d9fca74e7293fbcd5643046fd20 (diff)
downloadFreeBSD-src-d82c33e9e33482e03f46031fd3c98d3967ce094e.zip
FreeBSD-src-d82c33e9e33482e03f46031fd3c98d3967ce094e.tar.gz
- Fix some compile warnings regarding comparing signed to unsigned.
Approved by: thompsa (mentor)
Diffstat (limited to 'lib/libusb')
-rw-r--r--lib/libusb/libusb10_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libusb/libusb10_io.c b/lib/libusb/libusb10_io.c
index 1f0d0ba..48405c9 100644
--- a/lib/libusb/libusb10_io.c
+++ b/lib/libusb/libusb10_io.c
@@ -141,7 +141,7 @@ libusb10_handle_events_sub(struct libusb_context *ctx, struct timeval *tv)
err = LIBUSB_ERROR_IO;
if (err < 1) {
- for (i = 0; i != nfds; i++) {
+ for (i = 0; i != (int)nfds; i++) {
if (ppdev[i] != NULL) {
CTX_UNLOCK(ctx);
libusb_unref_device(libusb_get_device(ppdev[i]));
@@ -150,7 +150,7 @@ libusb10_handle_events_sub(struct libusb_context *ctx, struct timeval *tv)
}
goto do_done;
}
- for (i = 0; i != nfds; i++) {
+ for (i = 0; i != (int)nfds; i++) {
if (ppdev[i] != NULL) {
dev = libusb_get_device(ppdev[i]);
OpenPOWER on IntegriCloud