fixed some compiler warnings
This commit is contained in:
parent
60f8f53169
commit
3f63d80b9c
2 changed files with 2 additions and 2 deletions
|
@ -254,7 +254,7 @@ static void malloc(void)
|
|||
for (i=0; i<20; i++) {
|
||||
uint16_t sz = rand();
|
||||
p[i] = kmalloc(sz);
|
||||
test(p[i], "kmalloc(%u) = %p", sz, p[i]);
|
||||
test(p[i] != NULL, "kmalloc(%u) = %p", sz, p[i]);
|
||||
}
|
||||
buddy_dump();
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ extern const void bss_end;
|
|||
int lowlevel_init(void)
|
||||
{
|
||||
// initialize .bss section
|
||||
memset(&bss_start, 0x00, (char*) &bss_end - (char*) &bss_start);
|
||||
memset((char*) &bss_start, 0x00, (char*) &bss_end - (char*) &bss_start);
|
||||
|
||||
koutput_init();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue