aboutsummaryrefslogtreecommitdiffstats
path: root/drv_USBHUB.c
diff options
context:
space:
mode:
authormichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
committermichael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2007-02-25 12:27:26 +0000
commit3c851dd7e04640567ad5a738c43727bb40e9103e (patch)
treed6d80e104d74d26d5d8a67391958e8e362bf5633 /drv_USBHUB.c
parent51db519d969ceb3fb82effb49126314ca1d917b0 (diff)
downloadlcd4linux-3c851dd7e04640567ad5a738c43727bb40e9103e.tar.gz
lots of compiler warnings removed, C++-style comments removed, changed struc initialisation from 'field:value' to '.field=value'
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@771 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_USBHUB.c')
-rw-r--r--drv_USBHUB.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drv_USBHUB.c b/drv_USBHUB.c
index 770d50b..7e2d2a3 100644
--- a/drv_USBHUB.c
+++ b/drv_USBHUB.c
@@ -62,8 +62,8 @@ static char Name[] = "USBHUB";
* no Vendor/Product specified in config.
*/
-static int hubVendor = 0x0409;
-static int hubProduct = 0x0058;
+static unsigned int hubVendor = 0x0409;
+static unsigned int hubProduct = 0x0058;
static usb_dev_handle *hub = NULL;
@@ -298,7 +298,7 @@ int drv_UH_init(const char *section, const int quiet)
}
sleep(1);
for (i = 0; i < GPOS; ++i) {
- drv_UH_set(i, 3); // OFF
+ drv_UH_set(i, 3); /* OFF */
}
}
@@ -333,8 +333,8 @@ int drv_UH_quit(const int quiet)
DRIVER drv_USBHUB = {
- name:Name,
- list:drv_UH_list,
- init:drv_UH_init,
- quit:drv_UH_quit,
+ .name = Name,
+ .list = drv_UH_list,
+ .init = drv_UH_init,
+ .quit = drv_UH_quit,
};