mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
make usb_serial work again. Also know as "make sure arrays are allocated at their correct size"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16615 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
59b5dfbc7f
commit
326d0ab8c3
2 changed files with 6 additions and 6 deletions
|
@ -183,10 +183,10 @@ static enum { DEFAULT, ADDRESS, CONFIGURED } usb_state;
|
|||
|
||||
static int usb_core_num_interfaces;
|
||||
|
||||
int usb_charging_get_config_descriptor(unsigned char *dest,int max_packet_size,
|
||||
int interface_number,int endpoint);
|
||||
static int usb_charging_get_config_descriptor(unsigned char *dest,int max_packet_size,
|
||||
int interface_number,int endpoint);
|
||||
|
||||
struct usb_class_driver drivers[] =
|
||||
static struct usb_class_driver drivers[USB_NUM_DRIVERS] =
|
||||
{
|
||||
#ifdef USB_STORAGE
|
||||
[USB_DRIVER_MASS_STORAGE] = {
|
||||
|
@ -325,7 +325,7 @@ void usb_core_init(void)
|
|||
logf("usb_core_init() finished");
|
||||
}
|
||||
|
||||
int usb_charging_get_config_descriptor(unsigned char *dest,int max_packet_size,
|
||||
static int usb_charging_get_config_descriptor(unsigned char *dest,int max_packet_size,
|
||||
int interface_number,int endpoint)
|
||||
{
|
||||
(void) max_packet_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue