aboutsummaryrefslogtreecommitdiffstats
path: root/drv_USBHUB.c
diff options
context:
space:
mode:
authorjmccrohan <jmccrohan@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2015-07-12 21:26:15 +0000
committerjmccrohan <jmccrohan@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2015-07-12 21:26:15 +0000
commit4e055ed9cbda058f02f81571cc31e4cd6ef9afc2 (patch)
treeaea7d1f54323e2ed9d4f1c174fc24df7b41138fe /drv_USBHUB.c
parentd38b3dc0f50ff5049f07fbeac284fcd17f3cae30 (diff)
downloadlcd4linux-4e055ed9cbda058f02f81571cc31e4cd6ef9afc2.tar.gz
Replace non-portable datatypes with C99 versions
Found during OpenWrt's migration from uClibc to musl. Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1203 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_USBHUB.c')
-rw-r--r--drv_USBHUB.c19
1 files changed, 10 insertions, 9 deletions
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 <stdint.h>
#ifdef HAVE_USB_H
#include <usb.h>
@@ -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;
/****************************************/