From 2dc2fa2a56408e515d25359323b4ea2f1bbec14a Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 13 Sep 2011 20:38:26 +0200 Subject: [PATCH] Fix typos in introductory documentation --- libusb/io.c | 4 ++-- 1 file 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 -- 2.7.4