From 4e055ed9cbda058f02f81571cc31e4cd6ef9afc2 Mon Sep 17 00:00:00 2001 From: jmccrohan Date: Sun, 12 Jul 2015 21:26:15 +0000 Subject: Replace non-portable datatypes with C99 versions Found during OpenWrt's migration from uClibc to musl. Signed-off-by: Jonathan McCrohan git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1203 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- drv_USBHUB.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'drv_USBHUB.c') diff --git a/drv_USBHUB.c b/drv_USBHUB.c index f82558a..980eaeb 100644 --- a/drv_USBHUB.c +++ b/drv_USBHUB.c @@ -35,6 +35,7 @@ */ #include "config.h" +#include #ifdef HAVE_USB_H #include @@ -68,15 +69,15 @@ static unsigned int hubProduct = 0x0058; static usb_dev_handle *hub = NULL; typedef struct _usb_hub_descriptor { - u_int8_t bLength; - u_int8_t bDescriptorType; - u_int8_t nNbrPorts; - u_int8_t wHubCharacteristicLow; - u_int8_t wHubCharacteristicHigh; - u_int8_t bPwrOn2PwrGood; - u_int8_t bHubContrCurrent; - u_int8_t deviceRemovable; - u_int8_t PortPwrCtrlMask[8]; + uint8_t bLength; + uint8_t bDescriptorType; + uint8_t nNbrPorts; + uint8_t wHubCharacteristicLow; + uint8_t wHubCharacteristicHigh; + uint8_t bPwrOn2PwrGood; + uint8_t bHubContrCurrent; + uint8_t deviceRemovable; + uint8_t PortPwrCtrlMask[8]; } usb_hub_descriptor; /****************************************/ -- cgit v1.2.3