diff options
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/mem/virt.c | 2 | ||||
-rw-r--r-- | src/kernel/syscalls.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/kernel/mem/virt.c b/src/kernel/mem/virt.c index 4789e53..c3a1fca 100644 --- a/src/kernel/mem/virt.c +++ b/src/kernel/mem/virt.c @@ -41,7 +41,7 @@ bool virt_iter_next(struct virt_iter *iter) { } } else { // "iterate" over physical memory - iter->frag = iter->_virt; + iter->frag = (void*) iter->_virt; } iter->frag_len = partial; diff --git a/src/kernel/syscalls.c b/src/kernel/syscalls.c index 88dceef..6b0f4a2 100644 --- a/src/kernel/syscalls.c +++ b/src/kernel/syscalls.c @@ -9,7 +9,7 @@ #include <stdint.h> _Noreturn static void await_finish(struct process *dead, struct process *listener) { - size_t len; + int len; bool res; assert(dead->state == PS_DEAD); @@ -102,7 +102,6 @@ handle_t _syscall_open(const user_ptr path, int len) { } int _syscall_mount(handle_t handle, const user_ptr path, int len) { - struct virt_iter iter; struct vfs_mount *mount = NULL; char *path_buf; int res; |