aboutsummaryrefslogtreecommitdiffstats
path: root/libusb/io.c
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2011-09-13 20:38:26 +0200
committerPeter Stuge <peter@stuge.se>2011-09-22 11:25:47 +0200
commit2dc2fa2a56408e515d25359323b4ea2f1bbec14a (patch)
treedcf4555afe9056e2b12fefa35e2914d49fd678e9 /libusb/io.c
parent0a828082aeedc6d19b6de4e3b10cc9762352fa7f (diff)
downloadandroid_external_libusbx-2dc2fa2a56408e515d25359323b4ea2f1bbec14a.tar.gz
android_external_libusbx-2dc2fa2a56408e515d25359323b4ea2f1bbec14a.tar.bz2
android_external_libusbx-2dc2fa2a56408e515d25359323b4ea2f1bbec14a.zip
Fix typos in introductory documentation
Diffstat (limited to 'libusb/io.c')
-rw-r--r--libusb/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/io.c b/libusb/io.c
index c92699f..19454c6 100644
--- a/libusb/io.c
+++ b/libusb/io.c
@@ -92,8 +92,8 @@
* in the following style:
\code
unsigned char data[4];
-int actual_length,
-int r = libusb_bulk_transfer(handle, EP_IN, data, sizeof(data), &actual_length, 0);
+int actual_length;
+int r = libusb_bulk_transfer(handle, LIBUSB_ENDPOINT_IN, data, sizeof(data), &actual_length, 0);
if (r == 0 && actual_length == sizeof(data)) {
// results of the transaction can now be found in the data buffer
// parse them here and report button press