summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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>
Diffstat (limited to 'examples')
-rw-r--r--examples/fxload.c3
1 files changed, 2 insertions, 1 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;