examples: fix 2 compiler warnings
authorLudovic Rousseau <ludovic.rousseau@free.fr>
Sat, 27 Feb 2016 16:49:55 +0000 (17:49 +0100)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 2 Mar 2016 15:06:15 +0000 (16:06 +0100)
sam3u_benchmark.c:54:17: warning: comparison of integers of different signs:
      'unsigned int' and 'int' [-Wsign-compare]
                for (i = 0; i < xfr->num_iso_packets; i++) {
                            ~ ^ ~~~~~~~~~~~~~~~~~~~~
sam3u_benchmark.c:67:16: warning: comparison of integers of different signs:
      'unsigned int' and 'int' [-Wsign-compare]
        for (i = 0; i < xfr->actual_length; i++) {
                    ~ ^ ~~~~~~~~~~~~~~~~~~

Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
examples/sam3u_benchmark.c
libusb/version_nano.h

index 99d6b0f..7189b22 100644 (file)
@@ -42,7 +42,7 @@ static struct timeval tv_start;
 
 static void LIBUSB_CALL cb_xfr(struct libusb_transfer *xfr)
 {
-       unsigned int i;
+       int i;
 
        if (xfr->status != LIBUSB_TRANSFER_COMPLETED) {
                fprintf(stderr, "transfer status %d\n", xfr->status);
index e27a754..34110b0 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11085
+#define LIBUSB_NANO 11086