diff options
author | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2016-02-27 17:49:55 +0100 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau@free.fr> | 2016-03-02 16:06:15 +0100 |
commit | 2e78f9525f0558dcb004486baa18a0fcc7ccfb5e (patch) | |
tree | 45b053d2d5a42223791eddbb745161758fe4f61e /examples | |
parent | 3661588fe6ccbb2ca7ad9bb51a8f64a2a0161c6c (diff) | |
download | libusb-2e78f9525f0558dcb004486baa18a0fcc7ccfb5e.tar.gz |
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 <ludovic.rousseau@free.fr>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sam3u_benchmark.c | 2 |
1 files changed, 1 insertions, 1 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); |