From 2e78f9525f0558dcb004486baa18a0fcc7ccfb5e Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Sat, 27 Feb 2016 17:49:55 +0100 Subject: [PATCH] examples: fix 2 compiler warnings 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 --- examples/sam3u_benchmark.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sam3u_benchmark.c b/examples/sam3u_benchmark.c index 99d6b0f..7189b22 100644 --- a/examples/sam3u_benchmark.c +++ b/examples/sam3u_benchmark.c @@ -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); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index e27a754..34110b0 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11085 +#define LIBUSB_NANO 11086