From 76b3d340d0d1fc0cdfa423492961f305a7be7866 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 22 Apr 2015 12:48:50 +0200 Subject: [PATCH] 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 Signed-off-by: Chris Dickens --- libusb/core.c | 3 ++- 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 -- 2.7.4