diff options
author | Harry Mallon <hjmallon@gmail.com> | 2019-02-12 13:18:56 +0000 |
---|---|---|
committer | Nathan Hjelm <hjelmn@me.com> | 2019-04-04 22:17:13 -0600 |
commit | 85d1f361837bd719c433068a8f06d8d5c47d431f (patch) | |
tree | 2e465c6bddd88f7e48cc46878c5f4ccab990278b | |
parent | 0aeb46c3dd96e0e6c01a169414a6ba5f34d9ea18 (diff) | |
download | libusb-85d1f361837bd719c433068a8f06d8d5c47d431f.tar.gz |
Fix copy paste error in libusb_free_* docs
Closes #535
Signed-off-by: Nathan Hjelm <hjelmn@me.com>
-rw-r--r-- | libusb/descriptor.c | 9 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/libusb/descriptor.c b/libusb/descriptor.c index 7ee3090..53905e6 100644 --- a/libusb/descriptor.c +++ b/libusb/descriptor.c @@ -492,7 +492,7 @@ static int raw_desc_to_config(struct libusb_context *ctx, { struct libusb_config_descriptor *_config = malloc(sizeof(*_config)); int r; - + if (!_config) return LIBUSB_ERROR_NO_MEM; @@ -504,7 +504,7 @@ static int raw_desc_to_config(struct libusb_context *ctx, } else if (r > 0) { usbi_warn(ctx, "still %d bytes of descriptor data left", r); } - + *config = _config; return LIBUSB_SUCCESS; } @@ -1060,7 +1060,8 @@ int API_EXPORTED libusb_get_ss_usb_device_capability_descriptor( * It is safe to call this function with a NULL ss_usb_device_cap * parameter, in which case the function simply returns. * - * \param ss_usb_device_cap the USB 2.0 Extension descriptor to free + * \param ss_usb_device_cap the SuperSpeed USB Device Capability descriptor + * to free */ void API_EXPORTED libusb_free_ss_usb_device_capability_descriptor( struct libusb_ss_usb_device_capability_descriptor *ss_usb_device_cap) @@ -1117,7 +1118,7 @@ int API_EXPORTED libusb_get_container_id_descriptor(struct libusb_context *ctx, * It is safe to call this function with a NULL container_id parameter, * in which case the function simply returns. * - * \param container_id the USB 2.0 Extension descriptor to free + * \param container_id the Container ID descriptor to free */ void API_EXPORTED libusb_free_container_id_descriptor( struct libusb_container_id_descriptor *container_id) diff --git a/libusb/version_nano.h b/libusb/version_nano.h index bc7fc4e..af03632 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11350 +#define LIBUSB_NANO 11351 |