diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-04-17 13:22:34 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-04-17 13:22:34 -0700 |
commit | e873677b9196b191d6cdbdf9783c6d6a18379249 (patch) | |
tree | f083f210da89a4647b76d881fc9ef6796c847ff7 /libusb/version_nano.h | |
parent | 9ececdb0ecbbb77edd5a40cb8914ddc54b77dea2 (diff) | |
download | libusb-e873677b9196b191d6cdbdf9783c6d6a18379249.tar.gz |
descriptor: Minor improvements to the parse_descriptor() function
Change the type of the source pointer to 'void' so that callers need not
cast to 'unsigned char'. Also change working types to 'uint8_t' to make
it explicit that we are dealing with 8-bit types.
Refactor the parsing loop to avoid unnecessary stack variables. The
generated assembly with this change is more efficient.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/version_nano.h')
-rw-r--r-- | libusb/version_nano.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/version_nano.h b/libusb/version_nano.h index f2e5eaa..49b7a05 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11506 +#define LIBUSB_NANO 11507 |