Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2008 20:20:38 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 152943 for review
Message-ID:  <200811132020.mADKKc5Z073100@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152943

Change 152943 by hselasky@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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811132020.mADKKc5Z073100>