PERFORCE change 152943 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Nov 13 12:20:39 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=152943
Change 152943 by hselasky at hselasky_laptop001 on 2008/11/13 20:20:25
Style.
Affected files ...
.. //depot/projects/usb/src/lib/libusb20/libusb20.c#11 edit
Differences ...
==== //depot/projects/usb/src/lib/libusb20/libusb20.c#11 (text+ko) ====
@@ -647,7 +647,7 @@
int
libusb20_dev_req_string_sync(struct libusb20_device *pdev,
- uint8_t strIndex, uint16_t langid, void *ptr, uint16_t len)
+ uint8_t str_index, uint16_t langid, void *ptr, uint16_t len)
{
struct LIBUSB20_CONTROL_SETUP_DECODED req;
int error;
@@ -667,7 +667,7 @@
LIBUSB20_RECIPIENT_DEVICE |
LIBUSB20_ENDPOINT_IN;
req.bRequest = LIBUSB20_REQUEST_GET_DESCRIPTOR;
- req.wValue = (LIBUSB20_DT_STRING << 8) | strIndex;
+ req.wValue = (LIBUSB20_DT_STRING << 8) | str_index;
req.wIndex = langid;
req.wLength = 4; /* bytes */
@@ -695,7 +695,7 @@
int
libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev,
- uint8_t strIndex, void *ptr, uint16_t len)
+ uint8_t str_index, void *ptr, uint16_t len)
{
char *buf;
int error;
@@ -720,7 +720,7 @@
}
langid = temp[2] | (temp[3] << 8);
- error = libusb20_dev_req_string_sync(pdev, strIndex,
+ error = libusb20_dev_req_string_sync(pdev, str_index,
langid, temp, sizeof(temp));
if (error < 0) {
*(uint8_t *)ptr = 0; /* zero terminate */
More information about the p4-projects
mailing list