diff options
author | hselasky <hselasky@FreeBSD.org> | 2012-04-20 14:29:45 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2012-04-20 14:29:45 +0000 |
commit | 3463f3d087f68b3d32ecd9ccc77f8a2f8aef482d (patch) | |
tree | 7bba82ab4db6a05960a26e4d19378f7bd40ea21c /lib/libusb/libusb10.c | |
parent | 433fc8eeffa614ac974539d56caf875a8b001065 (diff) | |
download | FreeBSD-src-3463f3d087f68b3d32ecd9ccc77f8a2f8aef482d.zip FreeBSD-src-3463f3d087f68b3d32ecd9ccc77f8a2f8aef482d.tar.gz |
Fix some compile warnings.
MFC after: 1 week
Diffstat (limited to 'lib/libusb/libusb10.c')
-rw-r--r-- | lib/libusb/libusb10.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index 02ad315..893160e 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -651,17 +651,17 @@ libusb_set_interface_alt_setting(struct libusb20_device *pdev, static struct libusb20_transfer * libusb10_get_transfer(struct libusb20_device *pdev, - uint8_t endpoint, uint8_t index) + uint8_t endpoint, uint8_t xfer_index) { - index &= 1; /* double buffering */ + xfer_index &= 1; /* double buffering */ - index |= (endpoint & LIBUSB20_ENDPOINT_ADDRESS_MASK) * 4; + xfer_index |= (endpoint & LIBUSB20_ENDPOINT_ADDRESS_MASK) * 4; if (endpoint & LIBUSB20_ENDPOINT_DIR_MASK) { /* this is an IN endpoint */ - index |= 2; + xfer_index |= 2; } - return (libusb20_tr_get_pointer(pdev, index)); + return (libusb20_tr_get_pointer(pdev, xfer_index)); } int |