Chameleon

Chameleon Commit Details

Date:2011-01-30 06:24:41 (9 years 10 months ago)
Author:Evan Lojewski
Commit:719
Parents: 718
Message:Fix klibc warning. Simplify USB loop (untested)
Changes:
M/branches/meklort/i386/modules/klibc/strxspn.c
M/branches/meklort/i386/modules/USBFix/usb.c

File differences

branches/meklort/i386/modules/klibc/strxspn.c
33
44
55
6
67
78
89
*/
#include <limits.h>
#include "libsaio.h"
#include "strxspn.h"
branches/meklort/i386/modules/USBFix/usb.c
3838
3939
4040
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
41
42
43
44
45
6146
6247
6348
// Add usb device to the list
void notify_usb_dev(pci_dt_t *pci_dev)
{
struct pciList* current = usbList;
if(!usbList)
{
usbList = (struct pciList*)malloc(sizeof(struct pciList));
usbList->next = NULL;
usbList->pciDev = pci_dev;
}
else
{
while(current != NULL && current->next != NULL)
{
current = current->next;
}
current->next = (struct pciList*)malloc(sizeof(struct pciList));
current = current->next;
current->pciDev = pci_dev;
current->next = NULL;
}
struct pciList* current = (struct pciList*)malloc(sizeof(struct pciList));
current->next = usbList;
current->pciDev = pci_dev;
usbList = current;
}
// Loop through the list and call the apropriate patch function

Archive Download the corresponding diff file

Revision: 719