summaryrefslogtreecommitdiff
path: root/src/kernel/mem.c
diff options
context:
space:
mode:
authordzwdz2021-08-22 12:17:43 +0200
committerdzwdz2021-08-22 12:17:43 +0200
commit374e6d244f184056d64fd02729a7badf02991e29 (patch)
tree129dcc05757d3354bac0b217ca557eee8ff8c1b4 /src/kernel/mem.c
parent0128c5dc7ff2da36114b8f55187234d9b55db353 (diff)
fix almost all compiler warnings
Diffstat (limited to 'src/kernel/mem.c')
-rw-r--r--src/kernel/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/mem.c b/src/kernel/mem.c
index 63f5379..7c1c640 100644
--- a/src/kernel/mem.c
+++ b/src/kernel/mem.c
@@ -87,8 +87,8 @@ bool virt_user_cpy(
struct virt_iter dest_iter, src_iter;
size_t min;
- virt_iter_new(&dest_iter, dest, length, dest_pages, true, true);
- virt_iter_new( &src_iter, src, length, src_pages, true, false);
+ virt_iter_new(&dest_iter, dest, length, dest_pages, true, true);
+ virt_iter_new( &src_iter, (void*)src, length, src_pages, true, false);
dest_iter.frag_len = 0;
src_iter.frag_len = 0;