mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed differences in signedness warnings
svn path=/trunk/; revision=17965
This commit is contained in:
parent
8eece91bda
commit
71a3db7178
2 changed files with 7 additions and 7 deletions
|
@ -16,10 +16,10 @@
|
||||||
#define USB_ALTSETTINGALLOC 4
|
#define USB_ALTSETTINGALLOC 4
|
||||||
#define USB_MAXINTERFACES 32
|
#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;
|
struct usb_descriptor_header *header;
|
||||||
unsigned char *begin;
|
char *begin;
|
||||||
int parsed = 0, len, numskipped;
|
int parsed = 0, len, numskipped;
|
||||||
|
|
||||||
header = (struct usb_descriptor_header *)buffer;
|
header = (struct usb_descriptor_header *)buffer;
|
||||||
|
@ -101,12 +101,12 @@ static int usb_parse_endpoint(struct usb_host_endpoint *endpoint, unsigned char
|
||||||
return parsed;
|
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;
|
int i, len, numskipped, retval, parsed = 0;
|
||||||
struct usb_descriptor_header *header;
|
struct usb_descriptor_header *header;
|
||||||
struct usb_host_interface *ifp;
|
struct usb_host_interface *ifp;
|
||||||
unsigned char *begin;
|
char *begin;
|
||||||
|
|
||||||
interface->act_altsetting = 0;
|
interface->act_altsetting = 0;
|
||||||
interface->num_altsetting = 0;
|
interface->num_altsetting = 0;
|
||||||
|
@ -410,8 +410,8 @@ int usb_get_configuration(struct usb_device *dev)
|
||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
unsigned int cfgno, length;
|
unsigned int cfgno, length;
|
||||||
unsigned char *buffer;
|
char *buffer;
|
||||||
unsigned char *bigbuffer;
|
char *bigbuffer;
|
||||||
struct usb_config_descriptor *desc;
|
struct usb_config_descriptor *desc;
|
||||||
|
|
||||||
if (dev->descriptor.bNumConfigurations > USB_MAXCONFIG) {
|
if (dev->descriptor.bNumConfigurations > USB_MAXCONFIG) {
|
||||||
|
|
|
@ -206,7 +206,7 @@ struct hc_driver {
|
||||||
int (*hub_status_data) (struct usb_hcd *hcd, char *buf);
|
int (*hub_status_data) (struct usb_hcd *hcd, char *buf);
|
||||||
int (*hub_control) (struct usb_hcd *hcd,
|
int (*hub_control) (struct usb_hcd *hcd,
|
||||||
u16 typeReq, u16 wValue, u16 wIndex,
|
u16 typeReq, u16 wValue, u16 wIndex,
|
||||||
char *buf, u16 wLength);
|
u8 *buf, u16 wLength);
|
||||||
};
|
};
|
||||||
|
|
||||||
// old version, "just in case"
|
// old version, "just in case"
|
||||||
|
|
Loading…
Reference in a new issue