diff options
author | Antonio Ospite <ao2@ao2.it> | 2015-04-22 12:48:50 +0200 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2015-04-27 01:46:41 -0700 |
commit | 76b3d340d0d1fc0cdfa423492961f305a7be7866 (patch) | |
tree | 50a8f6851254875c51f8f0c476d6b7fce1d8c274 | |
parent | dfb5c0723f69413ddf7a6bf05fb493a119031268 (diff) | |
download | libusb-76b3d340d0d1fc0cdfa423492961f305a7be7866.tar.gz |
core: use the actual signature of libusb_get_configuration() in the docs
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>
-rw-r--r-- | libusb/core.c | 3 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c index 951e85d..e72afcb 100644 --- a/libusb/core.c +++ b/libusb/core.c @@ -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 diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 4ecbd70..17c3fd4 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10970 +#define LIBUSB_NANO 10971 |