fixed differences in signedness warnings
authorThomas Bluemel <thomas@reactsoft.com>
Wed, 21 Sep 2005 15:32:53 +0000 (15:32 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Wed, 21 Sep 2005 15:32:53 +0000 (15:32 +0000)
svn path=/trunk/; revision=17965

reactos/drivers/usb/usbport/config.c
reactos/drivers/usb/usbport/hcd.h

index 0ba8415..8d2e937 100644 (file)
 #define USB_ALTSETTINGALLOC            4
 #define USB_MAXINTERFACES              32
 
-static int usb_parse_endpoint(struct usb_host_endpoint *endpoint, unsigned char *buffer, int size)
+static int usb_parse_endpoint(struct usb_host_endpoint *endpoint, char *buffer, int size)
 {
        struct usb_descriptor_header *header;
-       unsigned char *begin;
+       char *begin;
        int parsed = 0, len, numskipped;
 
        header = (struct usb_descriptor_header *)buffer;
@@ -101,12 +101,12 @@ static int usb_parse_endpoint(struct usb_host_endpoint *endpoint, unsigned char
        return parsed;
 }
 
-static int usb_parse_interface(struct usb_interface *interface, unsigned char *buffer, int size)
+static int usb_parse_interface(struct usb_interface *interface, char *buffer, int size)
 {
        int i, len, numskipped, retval, parsed = 0;
        struct usb_descriptor_header *header;
        struct usb_host_interface *ifp;
-       unsigned char *begin;
+       char *begin;
 
        interface->act_altsetting = 0;
        interface->num_altsetting = 0;
@@ -410,8 +410,8 @@ int usb_get_configuration(struct usb_device *dev)
 {
        int result;
        unsigned int cfgno, length;
-       unsigned char *buffer;
-       unsigned char *bigbuffer;
+       char *buffer;
+       char *bigbuffer;
        struct usb_config_descriptor *desc;
 
        if (dev->descriptor.bNumConfigurations > USB_MAXCONFIG) {
index e2454de..ac564c6 100644 (file)
@@ -206,7 +206,7 @@ struct hc_driver {
        int             (*hub_status_data) (struct usb_hcd *hcd, char *buf);
        int             (*hub_control) (struct usb_hcd *hcd,
                                u16 typeReq, u16 wValue, u16 wIndex,
-                               char *buf, u16 wLength);
+                               u8 *buf, u16 wLength);
 };
 
 // old version, "just in case"