From a1221549012ec947ce4b2a1fa8439e35bdbdeca0 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 14 Oct 2010 20:18:39 +0000 Subject: [PATCH] - Fix some compile warnings regarding comparing signed to unsigned. Approved by: thompsa (mentor) --- lib/libusb/libusb10_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libusb/libusb10_io.c b/lib/libusb/libusb10_io.c index 1f0d0ba6c69c..48405c9f2379 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]);