summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau@free.fr>2016-02-27 17:52:05 +0100
committerLudovic Rousseau <ludovic.rousseau@free.fr>2016-03-02 16:07:00 +0100
commit686ccc284b9c54984fce6a8d2a29d020ede773a9 (patch)
treeaabde2dc96d71646bb5a8a62ae2a228420666a2b
parent2e78f9525f0558dcb004486baa18a0fcc7ccfb5e (diff)
downloadlibusb-686ccc284b9c54984fce6a8d2a29d020ede773a9.tar.gz
examples: fix 3 compiler warnings
fxload.c:202:17: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] ...for (j=0; j<ARRAYSIZE(known_device); j++) { ~^~~~~~~~~~~~~~~~~~~~~~~~ fxload.c:222:12: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] if (j < ARRAYSIZE(known_device)) { ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~ fxload.c:263:13: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare] for (i=0; i<ARRAYSIZE(path); i++) { ~^~~~~~~~~~~~~~~~ Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
-rw-r--r--examples/fxload.c3
-rw-r--r--libusb/version_nano.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/fxload.c b/examples/fxload.c
index 5dff736..5aa5226 100644
--- a/examples/fxload.c
+++ b/examples/fxload.c
@@ -89,7 +89,8 @@ int main(int argc, char*argv[])
const char *fx_name[FX_TYPE_MAX] = FX_TYPE_NAMES;
const char *ext, *img_name[] = IMG_TYPE_NAMES;
int fx_type = FX_TYPE_UNDEFINED, img_type[ARRAYSIZE(path)];
- int i, j, opt, status;
+ int opt, status;
+ unsigned int i, j;
unsigned vid = 0, pid = 0;
unsigned busnum = 0, devaddr = 0, _busnum, _devaddr;
libusb_device *dev, **devs;
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 34110b0..340ae63 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11086
+#define LIBUSB_NANO 11087