uprade: Fix warning on pointer sign.

This commit is contained in:
Gareth McMullin 2015-03-08 19:38:33 -07:00
parent 51f91092e7
commit a0f44e01cc
1 changed files with 4 additions and 3 deletions

View File

@ -84,12 +84,13 @@ int dfu_getstate(usb_dev_handle *dev, uint16_t iface)
int i; int i;
uint8_t state; uint8_t state;
do { do {
i = usb_control_msg(dev, i = usb_control_msg(dev,
USB_ENDPOINT_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, USB_ENDPOINT_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
DFU_GETSTATE, 0, iface, &state, 1, USB_DEFAULT_TIMEOUT); DFU_GETSTATE, 0, iface, (char*)&state, 1,
USB_DEFAULT_TIMEOUT);
} while(i == 0); } while(i == 0);
if(i > 0) if (i > 0)
return state; return state;
else else
return i; return i;