examples: testlibusb: Fix DDK build warning

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
Chris Dickens 2018-03-24 17:42:46 -07:00
parent dc5e33e382
commit f69255217c
2 changed files with 5 additions and 4 deletions

View File

@ -67,7 +67,7 @@ static void print_endpoint(const struct libusb_endpoint_descriptor *endpoint)
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_interface(const struct libusb_interface *interface)
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 @@ static int print_device(libusb_device *dev, int level)
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) {

View File

@ -1 +1 @@
#define LIBUSB_NANO 11310
#define LIBUSB_NANO 11311