examples: testlibusb: Fix DDK build warning
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
diff --git a/examples/testlibusb.c b/examples/testlibusb.c
index 893203a..f844aaf 100755
--- a/examples/testlibusb.c
+++ b/examples/testlibusb.c
@@ -67,7 +67,7 @@
static void print_altsetting(const struct libusb_interface_descriptor *interface)
{
- int i;
+ uint8_t i;
printf(" Interface:\n");
printf(" bInterfaceNumber: %d\n", interface->bInterfaceNumber);
@@ -151,7 +151,7 @@
static void print_configuration(struct libusb_config_descriptor *config)
{
- int i;
+ uint8_t i;
printf(" Configuration:\n");
printf(" wTotalLength: %d\n", config->wTotalLength);
@@ -171,7 +171,8 @@
libusb_device_handle *handle = NULL;
char description[256];
char string[256];
- int ret, i;
+ int ret;
+ uint8_t i;
ret = libusb_get_device_descriptor(dev, &desc);
if (ret < 0) {