summaryrefslogtreecommitdiff
path: root/libusb/os/poll_windows.c
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-04-17 13:22:34 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2020-04-17 13:22:34 -0700
commite873677b9196b191d6cdbdf9783c6d6a18379249 (patch)
treef083f210da89a4647b76d881fc9ef6796c847ff7 /libusb/os/poll_windows.c
parent9ececdb0ecbbb77edd5a40cb8914ddc54b77dea2 (diff)
downloadlibusb-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/os/poll_windows.c')
0 files changed, 0 insertions, 0 deletions