aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/usbstd.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-09-30 23:43:55 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-09-30 23:50:51 -0400
commitb3a6fbed74e5d81c753cb359e5f7bf48f6bd29db (patch)
tree5c179d1e7a0cc4eb11e9c68d22079e8cde051f3c /src/generic/usbstd.h
parent9ec2ad0992511a8aff7e5974266fd032c680f862 (diff)
downloadkutter-b3a6fbed74e5d81c753cb359e5f7bf48f6bd29db.tar.gz
kutter-b3a6fbed74e5d81c753cb359e5f7bf48f6bd29db.tar.xz
kutter-b3a6fbed74e5d81c753cb359e5f7bf48f6bd29db.zip
usbstd: Force usb_string_descriptor data field to match unicode string
Fix travis-ci build failure by forcing the data field of the struct usb_string_descriptor to be the same type as a 16bit unicode string. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/generic/usbstd.h')
-rw-r--r--src/generic/usbstd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/generic/usbstd.h b/src/generic/usbstd.h
index 86199992..07d0c1ca 100644
--- a/src/generic/usbstd.h
+++ b/src/generic/usbstd.h
@@ -113,7 +113,8 @@ struct usb_endpoint_descriptor {
struct usb_string_descriptor {
uint8_t bLength;
uint8_t bDescriptorType;
- uint16_t data[];
+ //uint16_t data[];
+ typeof(*u"") data[];
} PACKED;
#define USB_LANGID_ENGLISH_US 0x0409