From b3a6fbed74e5d81c753cb359e5f7bf48f6bd29db Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 30 Sep 2018 23:43:55 -0400 Subject: [PATCH] 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 --- src/generic/usbstd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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