Fix typos in introductory documentation
authorSebastian Pipping <sebastian@pipping.org>
Tue, 13 Sep 2011 18:38:26 +0000 (20:38 +0200)
committerPeter Stuge <peter@stuge.se>
Thu, 22 Sep 2011 09:25:47 +0000 (11:25 +0200)
libusb/io.c

index c92699f..19454c6 100644 (file)
@@ -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