fixed some compiler warnings

This commit is contained in:
Steffen Vogel 2013-11-26 17:18:47 +01:00
parent 60f8f53169
commit 3f63d80b9c
2 changed files with 2 additions and 2 deletions

View file

@ -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();

View file

@ -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();