commit | e1be4b983cdb0c52064695d76aea61011b63ff6d | [log] [tgz] |
---|---|---|
author | Linus Walleij <triad@df.lth.se> | Mon Aug 18 08:49:22 2008 +0000 |
committer | Linus Walleij <triad@df.lth.se> | Mon Aug 18 08:49:22 2008 +0000 |
tree | 85afd65dc03cdc686c1ff3d24921b148fbe1373d | |
parent | aed0f4d95d54796a643287752fe5fdedbce04fe2 [diff] [blame] |
Vartype and return flunkies
diff --git a/src/libusb-glue.c b/src/libusb-glue.c index 9d33dff..6e866c4 100644 --- a/src/libusb-glue.c +++ b/src/libusb-glue.c
@@ -1141,7 +1141,7 @@ /* stuff data directly to passed data handler */ while (1) { unsigned long readdata; - int xret; + uint16_t xret; xret = ptp_read_func( PTP_USB_BULK_HS_MAX_PACKET_LEN_READ, @@ -1151,7 +1151,7 @@ 0 ); if (xret != PTP_RC_OK) - return ret; + return xret; if (readdata < PTP_USB_BULK_HS_MAX_PACKET_LEN_READ) break; }