Author: hselasky
Date: Thu Oct 14 20:18:39 2010
New Revision: 213849
URL: http://svn.freebsd.org/changeset/base/213849

Log:
  - Fix some compile warnings regarding comparing signed to unsigned.
  
  Approved by:    thompsa (mentor)

Modified:
  head/lib/libusb/libusb10_io.c

Modified: head/lib/libusb/libusb10_io.c
==============================================================================
--- head/lib/libusb/libusb10_io.c       Thu Oct 14 20:04:36 2010        
(r213848)
+++ head/lib/libusb/libusb10_io.c       Thu Oct 14 20:18:39 2010        
(r213849)
@@ -141,7 +141,7 @@ libusb10_handle_events_sub(struct libusb
                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
                }
                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]);
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to