diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-04-17 11:31:55 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2020-04-17 11:31:55 -0700 |
commit | 02ebafc85d3f219842cbabaf78abc8100b6656e5 (patch) | |
tree | 3113cda1ef5f2f7dcd8f281c75fc8c7e3296f79b /libusb/os | |
parent | da87201f7a5580db16565b1ecc7eefe0fcb5bb59 (diff) | |
download | libusb-02ebafc85d3f219842cbabaf78abc8100b6656e5.tar.gz |
Add packed definitions for some standard USB descriptor types
These are going to be used in future commits to cleanup some code. Note
that these are prefixed as 'usbi' rather than 'usb' to avoid conflicts
with definitions provided by some system headers.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os')
-rw-r--r-- | libusb/os/linux_usbfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c index e1b25b0..31304d6 100644 --- a/libusb/os/linux_usbfs.c +++ b/libusb/os/linux_usbfs.c @@ -613,7 +613,7 @@ int linux_get_device_address(struct libusb_context *ctx, int detached, static int seek_to_next_descriptor(struct libusb_context *ctx, uint8_t descriptor_type, unsigned char *buffer, int size) { - struct usb_descriptor_header header; + struct usbi_descriptor_header header; int i; for (i = 0; size >= 0; i += header.bLength, size -= header.bLength) { |