warning: mismatched types on a variable
This commit is contained in:
parent
fd1086b408
commit
577d6c97ec
@ -31,7 +31,7 @@ void *alloc_frames(size_t size)
|
||||
kprintf(KERN_CRIT "Not enough frames (max: %d)\n", MAX_FRAMES);
|
||||
return NULL;
|
||||
}
|
||||
size_t i = find_next_block(nb_frames);
|
||||
int i = find_next_block(nb_frames);
|
||||
if (i == -1) {
|
||||
kprintf(KERN_WARNING "Not enough frames available\n",
|
||||
MAX_FRAMES);
|
||||
@ -40,7 +40,7 @@ void *alloc_frames(size_t size)
|
||||
for (size_t j = 0; j < nb_frames; j++)
|
||||
frame_table[j + i] = 1;
|
||||
remaining_frames -= nb_frames;
|
||||
return (void*)(i * PAGE_SIZE);
|
||||
return (void *)(i * PAGE_SIZE);
|
||||
}
|
||||
|
||||
int free_frames(void *frame_ptr, size_t size)
|
||||
|
Loading…
Reference in New Issue
Block a user