diff options
author | dzwdz | 2021-09-05 18:59:49 +0200 |
---|---|---|
committer | dzwdz | 2021-09-05 18:59:49 +0200 |
commit | 252f5e40c1c054e6ad52a413567460f3ed2917f4 (patch) | |
tree | 171e73b57eed28aa3438ebc52b584122738d420b /src/kernel | |
parent | 0f24fa98fd340205e7041d057b68d99893f2015d (diff) |
fix some warnings
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; |