Chameleon

Chameleon Commit Details

Date:2010-07-22 00:34:47 (9 years 2 months ago)
Author:Tamás Kosárszky
Commit:193
Parents: 192
Message:Fixed some warnings in acpi_patcher.c and aml_patcher.c. I guess mozodojo was meant to call aml_fill_simple_name() in aml_generator.c:215 instead the unexistent aml_fill_simple_string() function. Replaced void return value with -1. Changed acpi_patcher.c:791 from char *filename[512] to char filename[512]. Now the booter builds cleanly.
Changes:
M/trunk/i386/libsaio/acpi_patcher.c
M/trunk/i386/libsaio/saio_internal.h
M/trunk/i386/libsaio/aml_generator.c

File differences

trunk/i386/libsaio/acpi_patcher.c
788788
789789
790790
791
791
792792
793793
794794
for (i=0; i<30; i++)
{
char *filename[512];
char filename[512];
sprintf(filename, i>0?"SSDT-%d.aml":"SSDT.aml", i);
trunk/i386/libsaio/aml_generator.c
212212
213213
214214
215
215
216216
217217
218218
......
244244
245245
246246
247
247
248248
249249
250250
{
node->Length = 4;
node->Buffer = malloc(node->Length);
aml_fill_simple_string(node->Buffer, name);
aml_fill_simple_name(node->Buffer, name);
return node->Length;
}
else
{
verbose("aml_fill_name: unexpected end of names path!");
return;
return -1;
}
}
trunk/i386/libsaio/saio_internal.h
184184
185185
186186
187
188
187189
188190
189191
extern int file_size(int fdesc);
extern int read(int fdesc, char *buf, int count);
extern int write(int fdesc, const char *buf, int count);
extern int writebyte(int fdesc, char value);
extern int writeint(int fdesc, int value);
extern int b_lseek(int fdesc, int addr, int ptr);
extern int tell(int fdesc);
extern const char * systemConfigDir(void);

Archive Download the corresponding diff file

Revision: 193