core: use the actual signature of libusb_get_configuration() in the docs
authorAntonio Ospite <ao2@ao2.it>
Wed, 22 Apr 2015 10:48:50 +0000 (12:48 +0200)
committerChris Dickens <christopher.a.dickens@gmail.com>
Mon, 27 Apr 2015 08:46:41 +0000 (01:46 -0700)
Use the actual signature of the libusb_get_configuration() function in
the code example in the "caveats" section of the documentation.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/core.c
libusb/version_nano.h

index 951e85d..e72afcb 100644 (file)
@@ -239,7 +239,8 @@ struct list_head active_contexts_list;
  * active configuration. If the configuration we want is already active, then
  * we don't have to select any configuration:
 \code
-cfg = libusb_get_configuration(dev);
+cfg = -1;
+libusb_get_configuration(dev, &cfg);
 if (cfg != desired)
        libusb_set_configuration(dev, desired);
 \endcode
index 4ecbd70..17c3fd4 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10970
+#define LIBUSB_NANO 10971